peach a19a732be8 commit message | 2 years ago | |
---|---|---|
.. | ||
.yarnrc | 2 years ago | |
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
index.d.ts | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
$ npm install --save postcss-import-resolver
# or
$ yarn add postcss-import-resolver
const resolver = require('postcss-import-resolver')
const postcssLoader = {
loader: 'postcss-loader',
options: {
plugins: {
'postcss-import': {
resolve: resolver({
alias: {
'~': 'src/'
},
modules: ['node_modules']
})
}
}
}
}