bundle css from npm using rework-npm from the command line
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.gitignore
LICENSE
index.js
package.json
readme.md

readme.md

rework-npm-cli

Use rework-npm from the command line.

Install

Globally:

npm install -g rework-npm-cli

Or as a development dependency:

npm install --save-dev rework-npm-cli

Usage

rework-npm source.css -o bundle.css

Example of piping to other commands:

rework-npm source.css | myth | cleancss -o bundle.css

Using the myth and clean-css modules.

Use css source maps

rework-npm source.css -m -o bundle.css

The --sourcemap option enables sourcemaps in the bundle.css file. It can be shortened to -m.