Skip to content

Commit a297b03

Browse files
committed
init: add readme
1 parent 9a7d1af commit a297b03

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

readme.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# postcss-import-resolver
2+
3+
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)
4+
5+
## Installation
6+
7+
``` bash
8+
$ npm install --save postcss-import-resolver
9+
10+
# or
11+
12+
$ yarn add postcss-import-resolver
13+
```
14+
15+
## Usage (Webpack)
16+
17+
```js
18+
const resolver = require('postcss-import-resolver')
19+
const postcssLoader = {
20+
loader: 'postcss-loader',
21+
options: {
22+
plugins: {
23+
'postcss-import': {
24+
resolve: resolver({
25+
alias: {
26+
'~': 'src/'
27+
},
28+
modules: ['node_modules']
29+
})
30+
}
31+
}
32+
}
33+
}
34+
```

0 commit comments

Comments
 (0)