Skip to content

Commit 6ff6759

Browse files
committed
root option description
1 parent aa7f4e4 commit 6ff6759

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
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

0 commit comments

Comments
 (0)