Disable all css minification with Web Compiler (Visual Studio extension)
Asked Answered
C

1

8

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

Cribb answered 10/8, 2015 at 13:34 Comment(3)
link to your extension?Levirate
Added a link to the postCribb
Yeah, this is bugging me too!Kappenne
S
6

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

Sebastien answered 1/9, 2015 at 23:28 Comment(4)
Yes please! Want this off by default.Kappenne
@Mads Kvist Kristensen, don't mean to stress. But do you have an ETA on this? =)Cribb
It made in to the latest CI build here vsixgallery.com/extension/148ffa77-d70a-407f-892b-9ee542346862Sebastien
@MadsKvistKristensen Can you please update the link or provide the global solution here. Thanks!!!Gherlein

© 2022 - 2024 — McMap. All rights reserved.