K
K
Kostya Mikryukov2020-03-13 09:57:53
css
Kostya Mikryukov, 2020-03-13 09:57:53

Is it possible to make the css file auto-delete when the less file is created?

Hi all. The whole point of the question was in the title, but I will repeat with an example. When creating, say, the main.less file, the main.css file is also created, which in turn is not needed. And every time you create less files, you have to delete these unnecessary css files and this is not very convenient. Is there any way to automatically delete such "junk" files?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Kostya Mikryukov, 2020-03-13
@ELEVEN1000

The answer was downright stupid. Although I set all the settings correctly, I connected everything as it should, but nothing worked. I just restarted the editor and everything worked as expected. Thanks everyone.

A
Alexander Sharomet, 2020-03-13
@sharomet

Less needs to be compiled to css and then only connected to html.
If you mean imported files, then name the file _main.less, then the preprocessor will understand that this file is imported and there is no need to create css

A
azaza, 2020-03-13
@natojezlo

you need to specify in the included additional less files to the main file, so that unnecessary additional css would not be created

// main: ../style.less  - путь к основному less файлу

tyts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question