You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Read Mark Dalgleish's excellent ["End of Global CSS"](https://medium.com/seek-ui
14
14
15
15
First install the package: `npm install --save css-modulesify`
16
16
17
-
Then you can use it as a browserify plugin, eg: `browserify -p [ css-modulesify --css dist/main.css ] example/index.js`
17
+
Then you can use it as a browserify plugin, eg: `browserify -p [ css-modulesify -o dist/main.css ] example/index.js`
18
18
19
19
Inside `example/index.js` you can now load css into your scripts. When you do `var box1 = require('./box1.css')`, `box1` will be an object to lookup the localized classname for one of the selectors in that file.
20
20
@@ -25,7 +25,7 @@ var styles = require('./styles.css');
25
25
var div =`<div class="${styles.inner}">...</div>`;
26
26
```
27
27
28
-
The generated css will contain locally-scoped versions of any css you have `require`'d, and will be written out to the file you specify in the `--css` option.
28
+
The generated css will contain locally-scoped versions of any css you have `require`'d, and will be written out to the file you specify in the `--output` or `-o` option.
0 commit comments