mrcrowl / vscode-easy-less

Easy LESS extension for Visual Studio Code
MIT License
67 stars 23 forks source link

Generate both a *.css and a *.min.css file from the same file? #28

Closed toddhd closed 5 years ago

toddhd commented 7 years ago

How I can setup settings.json so that each .less file is compiled twice? Once as a .css file and once as a compressed *.min.css file?

mrcrowl commented 7 years ago

Hi @toddhd, issue #18 also asked for this, but I didn't get a compelling enough answer about what the use case was.

Can you help me understand what the use-case is for wanting both generated?

kwilliams1987 commented 6 years ago

The use case is having the .css referenced during development and .min.css referenced in production.

Paul-Hebert commented 6 years ago

@mrcrowl I had a similar use case. I ended up compiling the minified version during my overall build process, but it does seem nice to have right out of the box.

EDIT: Like @kwilliams1987 it was due to different dev/prod environments.