Skip to content

SnigBhaumik/node-minify-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-minify-all

Minifies CSS, JavaScripts and Images under the current directory tree with gulp task wrapper.

What's new?

  • Of course, lots of image, js, css minifiers are available around. The difference is here we can write individual business rules per file (for example, in case you don't want a particular file not to be minified).
  • You can run individual tasks or all the tasks or any combination of these.

Usage

Four gulp tasks are defined.

$ gulp minify-css Minifies all the CSS files under the directory (files with .css extension).
$ gulp minify-js Minifies all the JavaScript files under the directory (files with .js extension).
$ gulp minify-img Minifies all the image files under the directory (files with .jpg and .png extension).
$ gulp Runs all the above three tasks, minifiying all images, CSS and JS files.

Setting root folder

Set the value of rootdir constant in gulpfile.js

Dependencies

License

MIT

About

Minifies CSS, JavaScripts and Images under the current directory tree

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published