webpack+vue
匹配的报这个模板错误是怎么回事?
package.json
"vue": "^2.0.1", "vue-cli": "^2.4.0", "vue-html-loader": "^1.2.3", "vue-loader": "^9.5.1", "vue-style-loader": "^1.0.0",
vue.common.js:2569 [Vue warn]: Failed to mount component: template or render function not defined
重点来了,默认情况下,NPM包导出的是
runtime-only build
.因此为了要使用独立构建,在webpack配置中需要添加下面的代码:一周热门 更多>