Get unlimited public & private packages + team-based management with npm Teams.Learn more »

gobem-proc-sqwish

0.0.8 • Public • Published

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 is true 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
};

Install

npm i gobem-proc-sqwish

DownloadsWeekly Downloads

11

Version

0.0.8

License

GPLv3

Last publish

Collaborators

  • avatar