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-2
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ $ npm i css-modules-require-hook
26
26
27
27
Now, there are two ways to attach hook: manually or using preset file.
28
28
29
-
The first one allows you to pass options manually after module was required, to make it work. Example:
29
+
The first one allows you to pass options manually after module was required. Example:
30
30
31
31
```javascript
32
32
consthook=require('css-modules-require-hook');
@@ -38,7 +38,7 @@ hook({
38
38
// const styles = require('./icon.css');
39
39
```
40
40
41
-
The second one allows you to move options to separated file `cmrh.conf.js`, which should be located in your working directory (`process.cwd()`) or in its ancestors. Example:
41
+
The second one allows you to move options to the separate file `cmrh.conf.js`. Config file should be located in the same directory where executor is or in its ancestor directories. In that case hook will be attached right after the `css-modules-require-hook/preset` module will be required. Example:
0 commit comments