Skip to content

nuxt-contrib/postcss-import-resolver

Repository files navigation

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

About

Customize postcss-import resolve with enhanced-resolve

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •