[Vuejs]-How to use postcss (lost grid) in vue-loader

2👍

add the following lines to the vue-loader.config.js file in build/

postcss: [
    require('autoprefixer')({
        browsers: ['last 7 versions']
    })
]

so it looks like this:

 module.exports = {
  loaders: utils.cssLoaders({
    sourceMap: isProduction ? config.build.productionSourceMap : config.dev.cssSourceMap,
    extract: isProduction
  }),
  postcss: [
    require('autoprefixer')({
      browsers: ['last 7 versions']
    })
  ]
}

1👍

require(‘lost’) should add to the postcss Array like above

👤W.Karl

-1👍

“browserslist”: [
“> 1%”,
“last 2 versions”,
“not ie <= 8”
]

In package.json have define, you can see https://github.com/ai/browserslist#config-file

Leave a comment