gobem-proc-sqwish
v0.0.8
Published
Processor to minify CSS files for gobem builder.
Downloads
3
Maintainers
Readme
gobem-proc-sqwish
This processor for gobem minifies CSS files using sqwish. All options are passed as a single object. gobem-proc-sqwish requires directory to cache results of the work.
The following options are supported:
ignoreErrors
If this flag istrue
and error occured, raw file's content will be written instead minified one.cacheDir
Full path to a readable and writable directory to cache files.
Example for build.js
module.exports = function () {
return [
['select', 0, /^components\/(\w+)\/\1\.css$/],
['gobem-proc-sqwish', {
ignoreErrors: true,
cacheDir: '/var/www/gobem/cache'
}],
['write', 1]
]; // this array will be used as build instructions
};