Created
December 3, 2012 05:03
-
-
Save diniremix/4192825 to your computer and use it in GitHub Desktop.
a Sublime Text 2 build system for minifying javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//minifyjs.sublime-build | |
{ | |
"cmd": [ "${packages}\\JavaScript\\yui.bat", "$file", "-o", "${file_path}/${file_base_name}.min.js"], | |
"selector": "source.js" | |
} | |
//yui.bat | |
@echo off | |
echo minifying %* | |
:: path to yui compressor | |
java -jar %systemroot%\system32\yui.jar %* -v --charset utf-8 | |
@echo on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to mrmartineau http://goo.gl/w42aQ
Build Systems for Sublime Text