Search code examples
cssvisual-studiolessvisual-studio-2015visual-studio-extensions

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


Solution

  • There is no way to specify project-wide minification settings yet. I'm planning to add it to the compilerconfig.json.defaults file.