Looks up require('insert-css')
calls to extract CSS from a browserify bundle
to a file. Useful with sheetify
or any other package / transform that uses
insert-css
.
Command line
$ browserify -t sheetify/transform -p [ css-extract -o bundle.css ] index.js \ -o bundle.js
JS api
const browserify =
const browserify = { return processstdout}
Options
-o
/--out
: specify an outfile, defaults tobundle.css
. Can also be a function that returns a writable stream from the JavaScript API.
Installation
$ npm install css-extract