Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.
/ node-auto-minify Public archive

Wrapper around the node-minify module which automatically re-minifies files when changed

Notifications You must be signed in to change notification settings

phillipj/node-auto-minify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-auto-minify

Wrapper around the node-minify module which automatically re-minifies files when changed.

Why?

I wanted a daemon running which automatically minified my JS files whenever they got updated.

Usage

More or less just like srod's node-minify module. Also has a minified-event which fires whenever a minified package has been produced.

new minifier({
    type: 'gcc',
    fileIn: 'in.js',
    fileOut: 'out.js'
}).on('minified',function(fileOutName) {
	console.log('Minified packaged updated: %s', fileOutName);
});

Known issues

The module uses fs.watch() to spy in the input files for change, which is known to be unstable.

About

Wrapper around the node-minify module which automatically re-minifies files when changed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published