File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ require('css-modules-require-hook');
3030
3131``` javascript
3232require (' css-modules-require-hook' )({
33+ // If you run css-modulesify and require-hook from different directories,
34+ // you have to specify similar root directories
35+ // in order to get the same class names
36+ root: ' ...' , // please, use the absolute path here. It's process.cwd() by default
3337 // Setting this allows you to specify custom PostCSS plugins
3438 // You may use functions or strings, which match to the modules with the same name
3539 use: [] // may use `u` for short
Original file line number Diff line number Diff line change 44 "description" : " A require hook to compile CSS Modules on the fly" ,
55 "main" : " index.js" ,
66 "engines" : {
7- "node" : " >0.12"
7+ "node" : " >= 0.12"
88 },
99 "devDependencies" : {
1010 "babel" : " ^5.8.20" ,
You can’t perform that action at this time.
0 commit comments