Do you know of a plugin for Visual Studio Code that will minify a JS file? I'd like to minify a file as soon as it is saved.
To minify JavaScript, try UglifyJS. The Closure Compiler is also very effective. You can create a build process that uses these tools to minify and rename the development files and save them to a production directory.
Go to minifycode.com and click the CSS minifier tab. Then paste the CSS code into the input box and click the Minify CSS button. After the new minified code is generated, copy the code. Then go back to the css file of your website and replace the code with the new minified version.
As of now, there are some available extensions: for example Minify or JS & CSS Minifier
Note: You can find extensions on the VS Code Marketplace.
Or directly from VS Code by searching from the Extensions pane, on the left side (Ctrl + Shift + X).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With