peach a19a732be8 commit message 2 年之前
..
.yarnrc a19a732be8 commit message 2 年之前
CHANGELOG.md a19a732be8 commit message 2 年之前
LICENSE a19a732be8 commit message 2 年之前
index.d.ts a19a732be8 commit message 2 年之前
index.js a19a732be8 commit message 2 年之前
package.json a19a732be8 commit message 2 年之前
readme.md a19a732be8 commit message 2 年之前

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