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
+8
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,14 @@ $ npm i css-modules-require-hook
32
32
33
33
In this section I've tried to cover the common cases of usage.
34
34
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
+
35
43
### Basic example
36
44
37
45
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