cis-compress
v1.0.1
Published
Compress all JS and CSS files in directory (used .compressignore file)
Downloads
1
Readme
Code Integration Simple compress package
Compress all JS and CSS files in directory. You can use .compressignore file in source directory to configure which files will be compressed. All other files will be copied without changes.
Install
npm install cis-compress
Usage
var compress = require('./libs/compress.js');
compress('./source', './dist', {
verbose: true,
check: false,
quiet: false
});
Command line
node cis-compress SOURCE_DIR DESTINATION_DIR [options]
Options:
-v, --verbose A detailed list of compressed files
-c, --check Checks files that will be compressed
-q, --quiet Hide all console messages
Show help:
node cis-compress -h
.compressignore
Compressignore is a .gitignore file with the same syntax.
License
MIT