vue引入element-ui的css后报错

ERROR Failed to compile with 1 errors 15:24:02
error in ./node_modules/[email protected]@element-ui/lib/theme-chalk/index.css

Module build failed: Error: No PostCSS Config found in: D:\文件\vue-slot-demo-master\vue-slot-demo-master\[email protected]@element-ui\lib\theme-chalk
at config.load.then (D:\文件\vue-slot-demo-master\vue-slot-demo-master\[email protected]@postcss-load-config\src\index.js:55:15)
表示某个css不能被引入,因为webpack升级了,没有找到postcss的配置
在根目录下建立postcss.config.js文件,加上以下内容
module.exports = {
plugins: {
'autoprefixer': { browsers: 'last 5 version' }
}
}

你可能感兴趣的:(vue引入element-ui的css后报错)