0.0.2 • Published 9 years ago
qwish v0.0.2
qwish
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
0.0.2
9 years ago