buildkit
A front-end build kit.
API
It's easy to use.
HTML
minifyHTMLFile(src, dest, [options], [callback])
src
Type: string
The source file or directory.
dest
Type: string
The destination file or directory.
options
Type: object
See html-minifier options.
callback
Type: function
/*! Example */// Minify File// Minify Directory;
CSS
minifyCSSFile(src, dest, [options], [callback])
src**
Type: string
The source file or directory.
dest
Type: string
The destination file or directory.
options
Type: object
See clean-css options.
callback
Type: function
/*! Example */// Minify file// Merge and minify multi files// Minify directory;
JS
minifyJSFile(src, dest, [options], [callback])
src**
Type: string
The source file or directory.
dest
Type: string
The destination file or directory.
options
Type: object
See UglifyJS2 options.
callback
Type: function
/*! Example */// Minify file// Merge and minify multi files// Minify directory