helvetic
6/14/2018 - 7:00 AM

postcssrc

postcssrc #config #postcss

module.exports = {
  from: './src/assets/styles/style.css',
  to:   './src/assets/styles/style.map.css',
  map: { inline: false },
  plugins: {
    autoprefixer: {},
    "postcss-import": {},
    "postcss-nested": {},
    "postcss-css-variables": {},
    "postcss-cssnext": {},
  },
  chainWebpack: config => {
    config.module
      .rule('css')
        .use({
          loader: 'postcss-loader',
          options: {
            sourceMap: false
          }
        })
  }
}