指令: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
指令: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