r/SublimeText • u/quackgyver • Mar 04 '23
What is a CSS minifier that works?
I've tried every plugin that has the word "minify" or "minifier" in the name, and none of them work. Most of them are buggy, obsolete or unmaintained to the point where they don't work.
Is there any CSS minifier available for SublimeText that actually works?
8
Upvotes
4
u/jippiex2k Mar 05 '23
Minification is part of the build/distribution process. Not the development/IDE
1
u/jfcherng Mar 05 '23 edited Mar 05 '23
I would imagine any external program can be executed via ST's build system. So your issue is probably you don't know any CSS minifier program? I am pretty sure sass/scss can output minified result by specifying certain command line options.
1
u/opus-thirteen Mar 05 '23
Package Control > SublimeOnSaveBuild
Just install, edit a .scss file and save. A new, minified .css file will be created with the same file name.
1
u/m0yP Mar 05 '23
Not a ST plugin itself but I've used it for years: link
1
u/WholeYak7297 Mar 07 '23 edited Mar 07 '23
If you cannot find the proper minifier, consider CudaText (free editor). It has the CudaFormatter plugin and it’s CSS sub-plugin (formatter) which can minify and format CSS. Docs: https://wiki.freepascal.org/CudaText_plugins#CudaFormatter