平时在 vue 开发中 遇到的问题
在入口文件 main.js 引入css 文件会报错
解决方法 在 webpack.config.js 里面 增加 include 配置项:
{
test:
/
\.
css
$
/,
include: [
'/src/',
'/node_modules/element-ui/lib/'
],
loader:
'style-loader!css-loader'
},