npm.devtool.tech
👏 You can access postcss-import-resolver package with using postcssImportResolver variable in browser devtools!
Customize postcss-import resolve with enhanced-resolve

basic

package
Npm Version
Node Version

popularity

Star
Npm Weekly Downloads
Jsdeliver Month Downloads
Dependents Pkg
Dependents Repo

size

Code Size
Publish Size
Install Size
Minified Size
Gzip Size

quality

Open Issues
Tree Shaking Support
Type Support
Last Commit

health

Package health
Dependency Count
Outdated Dep
Vulnerablities

postcss-import-resolver

JavaScript Style Guide

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']
        })
      }
    }
  }
}