Closed eugeneware closed 7 years ago
There's currently no way to pass in the global option via the browserify command line. Ie:
global
browserify
$ browserify -p [ css-modulesify -g -o bundle.css ] index.js -o bundle.js
Where index.js is a file that requires a CSS module from within node_modules. Eg:
index.js
node_modules
const maxWidths = require('tachyons-max-widths');
This PR fixes this issue.
I've published this as @eugeneware/css-modulesify until this gets merged in.
@eugeneware/css-modulesify
thanks @eugeneware !
published as v0.27.2
Cheers!
There's currently no way to pass in the
global
option via thebrowserify
command line. Ie:Where
index.js
is a file that requires a CSS module from withinnode_modules
. Eg:This PR fixes this issue.