css-modules / css-modulesify

A browserify plugin to load CSS Modules
MIT License
403 stars 47 forks source link

allow global option via command line #113

Closed eugeneware closed 7 years ago

eugeneware commented 7 years ago

There's currently no way to pass in the global option via the browserify command line. Ie:

$ 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:

const maxWidths = require('tachyons-max-widths');

This PR fixes this issue.

eugeneware commented 7 years ago

I've published this as @eugeneware/css-modulesify until this gets merged in.

joshwnj commented 7 years ago

thanks @eugeneware !

joshwnj commented 7 years ago

published as v0.27.2

eugeneware commented 7 years ago

Cheers!