Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 13eea02

Browse files
readme
1 parent 032aec0 commit 13eea02

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎README.md‎

Lines changed: 8 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /