Skip to content

Commit cea7db0

Browse files
committed
Merge pull request #16 from css-modules/minor.updates
Minor.updates
2 parents d0e8d68 + 6ff6759 commit cea7db0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ require('css-modules-require-hook');
3030

3131
```javascript
3232
require('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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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",

0 commit comments

Comments
 (0)