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).
Answer from Supersharp on Stack OverflowVideos
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).
Search for Visual Studio Code Minify Plugins on Google. There are plenty. For example, this, and this.
I am looking for a VS Code extension to minify CSS files and support CSS nesting.
Any suggestions?
Notes:
CSS Nesting is available in all browsers now, and there are a few minification plugins, but most of them are outdated.
I don't use npm or postcss, only vanilla CSS.
You can use the Visual Studio 2015 Bundler & Minifier,extention https://visualstudiogallery.msdn.microsoft.com/9ec27da7-e24b-4d56-8064-fd7e88ac1c40 this used to be apart of Web Essentials in previous versions of Visual Studio, but was separated, into it's own extension.
The below link explains a lot better https://learn.microsoft.com/en-us/archive/blogs/rickandy/adding-web-optimization-to-a-web-pages-site
http://www.asp.net/mvc/overview/performance/bundling-and-minification
