Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 603
Adrian Rosca Avatar asked Aug 10 '15 13:08

Adrian Rosca


Video Answer


1 Answers

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

like image 105
Mads Kvist Kristensen Avatar answered Oct 01 '22 00:10

Mads Kvist Kristensen