简体   繁体   中英

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

在此处输入图片说明

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:

在此处输入图片说明

I hope someone can explain what arguments I could use.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM