postcss-import-resolver
v2.0.0
Published
Customize postcss-import resolve with enhanced-resolve
Downloads
1,055,525
Readme
postcss-import-resolver
Installation
$ npm install --save postcss-import-resolver
# or
$ yarn add postcss-import-resolver
Usage (Webpack)
const resolver = require('postcss-import-resolver')
const postcssLoader = {
loader: 'postcss-loader',
options: {
plugins: {
'postcss-import': {
resolve: resolver({
alias: {
'~': 'src/'
},
modules: ['node_modules']
})
}
}
}
}