Skip to content

Commit 13eea02

Browse files
committed
readme
1 parent 032aec0 commit 13eea02

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ $ npm i css-modules-require-hook
3232

3333
In this section I've tried to cover the common cases of usage.
3434

35+
### Development mode
36+
37+
Usually, Node.js caches all the `require` calls by default. In order to invalidate cache for the purpose of development you should set the environment variable `NODE_ENV` to `development`. For example:
38+
39+
```bash
40+
$ NODE_ENV=development node server.js
41+
```
42+
3543
### Basic example
3644

3745
Basically to attach the require hook you need to require this module. If you need to adjust it see the tuning section below.

0 commit comments

Comments
 (0)