rework-suit
A Rework plugin for use with SUIT CSS.
Installation
Install with npm:
npm install --save-dev rework-suit
Use
As a Rework plugin:
var css = fs; var processed = ;
Where options
has properties alias
, root
, and shim
corresponding to the
options available in rework-npm.
Features
- rework-vars: use W3C-style CSS Variables.
- rework-custom-media: use W3C-style CSS Custom Media Queries.
- rework-npm: an
@import
inliner. - rework-calc: resolve basic
calc()
expressions. - rework-suit-conformance: SUIT CSS conformance checks on imported files.
- rework-ie-limits: IE selector limit check.
Original:
; @); {}
yields:
/* …inlined normalize.css source code… */ {}
Testing
Install all dependencies and run the tests:
npm install && npm test
Watch and re-run the tests:
npm run watch