[Vuejs]-How can I use precss in vue-loader at a vue-cli programme?

0👍

You cannot pass a custom parser in as a plugin. Your config should look like this:

postcss: {
  options: {
    parser: require('postcss-scss')
  },
  plugins: [
    require('postcss-cssnext')(),
    require('precss')()
  ]
}

Leave a comment