Vladimir Kabar
Vladimir Kabar

Reputation: 57

How to enable on save minification in VSCode (Win10) in JS & CSS Minifier

On their official page there is only information that minifying is disabled by default. How can i change that? Because i cannot find that feature in settings...

Upvotes: 2

Views: 3856

Answers (1)

Roman Haivaronski
Roman Haivaronski

Reputation: 530

In settings type JS & CSS Minifier and look for these lines and change to "yes":

// Automatically minify file when saving. 
//Set to "yes" to always minify, 
//"no" to never minify, 
//"exists" to only minify if a minified version already exists.
"es6-css-minify.minifyOnSave": "no"

or you can use the new settings editor that is proposed by the IDE where you will have the user interface for all the settings.

Upvotes: 4

Related Questions