Skip to content

Commit 2caa8bb

Browse files
committed
added info about the global flag to readme
1 parent bdee7db commit 2caa8bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ b.on('css stream', function (css) {
6969
- `use`: optional array of postcss plugins (by default we use the css-modules core plugins). NOTE: it's safer to use `after`
7070
- `after`: optional array of postcss plugins to run after the required css-modules core plugins are run.
7171
- `generateScopedName`: (API only) a function to override the default behaviour of creating locally scoped classnames.
72+
- `global`: optional boolean. Set to `true` if you want `css-modulesify` to apply to `node_modules` as well as local files. You can read more about it in the [browserify docs](https://github.com/substack/node-browserify/#btransformtr-opts).
7273

7374
### Events
7475
- `b.on('css stream', callback)` The callback is called with a readable stream containing the compiled CSS. You can write this to a file.

0 commit comments

Comments
 (0)