您的位置:首页 > 产品设计 > UI/UE

webpack打包vue2.0,[Vue warn]: You are using the runtime-only build of Vue where the template compiler

2017-08-28 17:02 916 查看
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

(found in )

当出现如下问题时:

在webpack配置文件中添加:

(跟module,input等属性同一级)

resolve: {
alias: {
'vue': 'vue/dist/vue.js'
}
}


即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  webpack
相关文章推荐