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
Automatically compiles a CSS Module to a low-level interchange format called ICSS or [Interoperable CSS](https://github.com/css-modules/icss).
5
+
6
+
One of the ways you can compile [CSS Modules](https://github.com/css-modules/css-modules) to the ICSS format is through the require hook. The require hook will bind itself to node's require and automatically compile files on the fly. This is similar to Babel's [babel/register](https://babeljs.io/docs/usage/require/).
7
+
8
+
## Install
9
+
10
+
```bash
11
+
$ npm i css-modules-require-hook
12
+
```
13
+
14
+
## Usage
15
+
16
+
```javascript
17
+
require('css-modules-require-hook');
18
+
```
19
+
20
+
## Specifying options
21
+
22
+
```javascript
23
+
require('css-modules-require-hook')({
24
+
// Setting this allows you to specify custom PostCSS plugins
25
+
// You may use functions or strings, which match to the modules with the same name
0 commit comments