qwish

0.0.2 • Public • Published

qwish Build Status

A Node based CSS Compressor. This is sqwish without strict mode.

require('qwish').minify('body { color: #ff33cc; }');
// => "body{color:#f3c}"

CLI

Install it.

$ npm install -g qwish

Use it like this:

$ qwish app.css # default output is <file>.min.css therefore app.css => app.min.css
$ # or...
$ qwish css/styles.css -o prod/something-else.min.css

Notes

Qwish does not attempt to fix invalid CSS, therefore, at minimum, your CSS should at least follow the basic rules:

selectors[,more selectors] {
  property: value;
  another-property: another value;
}

Developers

Be sure you have the proper testing harness set up ahead of time by installing the sink-test submodule

$ npm install

Tests can be added in tests/tests.js, and then run as such:

$ npm test

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i qwish

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • floatdrop