Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


I got sick of battling to get the popular JS minifers to work (on windows), so decided to write a script myself.


Ruby (I wrote this on 1.9.3)


Thanks to @AndyChilton for his API. Made life much easier.

Basic Usage

Copy the SimpleJSMinifier script to the directory where your root JS file lives, open a command prompt there and run:

SimpleJSMinifier filename.js

Compiling JS files

You can also compile JS files into your root, to do so simply add a comment into the root JS file with an import pointing at the file you want to import, like so:

/* @import(folder/filename.js) */

So far, this does not support importing on multiple levels, so you can't have a file importing a file importing a file. Just a file importing a file.

Known Issues

  • jQuery crashes the minifying API service, so don't use this script to minify jQuery. I suggest loading it from Google's CDN.


  • V1.0.0 - Initial version.
  • V1.1.0 - Upgraded to using an API to minify the JS rather than some squiffy regexes.
  • v1.1.1 - Fixed the way file paths are handled in a few places so that you can run the script from any location and reference a root JS file in any location.
You can’t perform that action at this time.