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

[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'
        }
    }

即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章