No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
minify.json
package.json
readme.md
uglifyjs-watcher.js

readme.md

About

Tired of minifiying your JS files manually? You can use uglifyjs-watcher to watch your changes in js files. Uglifyjs-watcher will minify all your files whenever you save your files.

Installation

npm install uglifyjs-watcher -g
  • Until I make a patch, you MUST install this module with -g option.

JSON Format

{

    "uglify-js-arguments": [
        "--source-map bundle.min.js.map",
        "--source-map-root http://localhost/js",
        "-m",
        "-c"
    ],
    "scripts": [
        "app.js",
        "files.js",
        ...
    ],

    "minifiedFilename": "minified.js"

}

Syntax

uglifyjs-watcher minify.json