Skip to content

Commit ac0edf3

Browse files
committed
readme update
1 parent aa1bee5 commit ac0edf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $ npm i css-modules-require-hook
2626

2727
Now, there are two ways to attach hook: manually or using preset file.
2828

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:
3030

3131
```javascript
3232
const hook = require('css-modules-require-hook');
@@ -38,7 +38,7 @@ hook({
3838
// const styles = require('./icon.css');
3939
```
4040

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:
4242

4343
```javascript
4444
// cmrh.conf.js

0 commit comments

Comments
 (0)