vue文件添加编译

指令:1: npm install vue-loader vue-template-compiler --save-dev

2:config中配置

{
test: /\.vue$/,
exclude: /(node_modules|bower_components)/,
use: ['vue-loader']
}

3:当版本编译失败时可以适当降低版本,如果过高,要安装插件,建议^13.0.0

猜你喜欢

转载自www.cnblogs.com/senjiang/p/11867653.html
今日推荐