Closed jjnxpct closed 4 years ago
Hi! This was actually not that hard ;-) I just couldn't get it to work because one of the files imported had an error )-;
Anyway, i just added this line at the beginning of all the imported less files:
//main: main.less
And that did the trick.
Hi! I am struggling to get my less compilation working the way I need. I hope someone can help me out.
I have a 'less' folder with multiple less files. The mail less file (main.less) imports all the other less files.
The output file needs to be a css file main.css. In the folder css.
ccs/main.css less/main.less (with @import for all other less files in the same folder) less/extrafile1.less less/extrafile2.less less/extrafile3.less
I did manage to compile the main.less to the main.css when I save main.less.
But when I open and save one of the 'imported' less files (for example extrafile1.less) I can;t get it to compile (trigger?) the main.less file and output the main.css.
Any thought on how I can get this working? Thanks.