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
A CSS Modules parser to extract tokens from the css file. Provides opportunity to process multiple files. Supports both synchronous and asynchronous file loaders.
4
+
A CSS Modules parser to extract tokens from the css file. Provides opportunity to process multiple files.
5
5
6
6
## API
7
7
8
-
In order to use it you should provide a `fetch` function which should load contents of files and process it with the PostCSS instance. `fetch` function should return tokens or promise object which will resolve into tokens.
8
+
In order to use it you should provide a `fetch` function which should load contents of files and process it with the PostCSS instance.
9
+
`fetch` function should return promise object which will resolve into tokens.
9
10
10
-
```javascript
11
-
var Parser=require('postcss-modules-parser');
11
+
```js
12
+
constICSS=require('postcss-icss');
12
13
13
-
/**
14
-
* @param{string}to Path to the new file. Could be any.
15
-
* @param{string}from Path to the source file. Should be absolute.
0 commit comments