简体   繁体   中英

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? 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":{}
  }
]

Web Compiler extension can be found here

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.

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