peach a19a732be8 commit message 2 years ago
..
.yarnrc a19a732be8 commit message 2 years ago
CHANGELOG.md a19a732be8 commit message 2 years ago
LICENSE a19a732be8 commit message 2 years ago
index.d.ts a19a732be8 commit message 2 years ago
index.js a19a732be8 commit message 2 years ago
package.json a19a732be8 commit message 2 years ago
readme.md a19a732be8 commit message 2 years ago

readme.md

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