[英]Disable all css minification with Web Compiler (Visual Studio extension)
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? 我的较少文件在每次保存时编译为css,但如何以简单的方式禁用项目中所有css文件的缩小? 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.
但由于我有数百个css文件,因此配置总是很痛苦。
This can be done for each file in the compilerconfig.json
: 这可以在
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. 我打算将它添加到
compilerconfig.json.defaults
文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.