bundle-cssify
superseded by css-extract
browserify transform to extract css for insert-css
into external css files
what?
given a file like
// entry.jsvar insertCss = console
transform into
// bundle.jsconsole
and
/* css/86bffed652227c2fc7321a8a.css */
where each extracted css file will be named by the hash of its content.
install
with npm
:
npm install --save bundle-cssify
usage
cli
as a normal browserify transform:
browserify entry.js -t [ bundle-cssify -d ./css ] > bundle.js
replace -t
with -g
to run as a global transform (where "the transform will operate on ALL files, despite whether they exist up a level in a node_modules/
directory")
package.json
as a normal browserify transform: