Forums

Sublime Text “Auto Minification” Build System

Does anyone know how to create a Sublime Text build system that will scan through a project and minify all “scripts.js” and “styles.css” files into “scripts.min.js” and “styles.min.css”?

I already have css minification working through compass, and can manually minify the js through a plugin, but I’d like the option of just “pressing a button” and having it all done automatically (especially on projects where compass isn’t used).

I’m pretty sure this can be done, but I have no idea how to do it after looking at the documentation, so any help or insight would be greatly appreciated. Thanks!

Tips

Categories

We have a pretty good* newsletter.

Email Address

CSS-Tricks* is created, written by, and maintained by Chris Coyier and a team of swell people. It is built on WordPress, hosted by Media Temple, and the assets are served by MaxCDN. The fonts are Source Sans Pro and Source Code Pro. It is made possible through sponsorships from products and services we like.