iJokerAssassin
iJokerAssassin

Reputation: 149

PhpStorm compile Less folder to style.css

I have a folder with Less files, split in parts to have a cleaner workspace. But I want them to be compiled by PhpStorm to 1 file (styles.css in a css folder). I installed lessc and it compiles the files separate. See picture 1

enter image description here

As I said I would like to have all files combined into css/styles.css But I don't get this configured right. My configuration is as followed:

enter image description here

I hope someone can explain what arguments I could use.

Upvotes: 1

Views: 194

Answers (1)

lena
lena

Reputation: 93728

When Track only root files option is enabled in Less file watcher settings, file watcher produces a single .css file with name matching your "main" .less file (the one that imports all your "partials") that includes the merged content of all your .less files. No individual .css files for partials are created

Upvotes: 1

Related Questions