webpack打包css前缀自动取消,以及样式冲突问题

   new ExtractTextPlugin({
      filename: utils.assetsPath('css/[name].[contenthash].css'),
      // Setting the following option to `false` will not extract CSS from codesplit chunks.
      // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
      // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, 
      // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
      allChunks: true, 如果是true的话css会打包成一个,有可能会冲突,改为false
    }),

前缀被去掉可以用

https://www.cnblogs.com/hezihao/p/8028856.html

postCSS一个简单的配置,引入了autoprefixer插件。让postCSS拥有添加前缀的能力,它会根据 can i use 来增加相应的css3属性前缀

原文地址:https://www.cnblogs.com/hduhdc/p/8929221.html