Grow your CSS skills. Land your dream job.

Sublime Text “Auto Minification” Build System

  • # May 23, 2013 at 2:09 pm

    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!

    # May 23, 2013 at 2:16 pm

    Not sure that it’ll scan through a project, but will do each file:

    [https://github.com/cgutierrez/JsMinifier](https://github.com/cgutierrez/JsMinifier “JsMinifier”)

    # May 24, 2013 at 4:23 am

    I figured out how to concatenate , compile, and minify all of my javascript and css with one command through Grunt, so I’m all good now. Thanks again!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".