vue 使用前端框架 iview时,引入iview.css 报错
vue安装完iview后,启动项目,提示 in ./node_modules/dist/styles/iview.css 报错
打开 webpack.base.conf.js,找到 test:/.css$/,添加includ项即可
{
test:/\.css$/,
loader:'style-loader!css-loader!stylus-loader',
include:[
/src/,
'/node_modules/iview/dist/styles/iview.css'
]
}