Skip to content

Instantly share code, notes, and snippets.

@diniremix
Created December 3, 2012 05:03
Show Gist options
  • Save diniremix/4192825 to your computer and use it in GitHub Desktop.
Save diniremix/4192825 to your computer and use it in GitHub Desktop.
a Sublime Text 2 build system for minifying javascript
//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
@diniremix
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
OSZAR »