My less files compiles to css on each save, but how do I disable minification for all css files i the project in a simple way? I can see in the docs that it's possible to give each file its own settings. But that's a total pain to configure, since I have hundreds of css files.
This can be done for each file in the compilerconfig.json
:
[
{
"outputFile": "output/site.css",
"inputFile": "input/site.less",
"minify": {
"enabled": false
},
"includeInProject": true,
"sourceMap": false,
"options":{}
}
]
There is no way to specify project-wide minification settings yet. I'm planning to add it to the compilerconfig.json.defaults
file.
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.