Jua*_*rez 3 firebase webpack vue.js firebase-hosting
我有一个 vue 应用程序,我安装了 firebase 工具并将该应用程序上传到 firebase 托管,第一次全部完成并制作npm run buildand firebase deploy,但是当我意识到任何更改时,稍后执行npm run serveorbuild或firebase deploy我有下一个错误:
Template execution failed: ReferenceError: features is not defined
ReferenceError: features is not defined
- index.html:4 eval
[.]/[html-webpack-plugin]/lib/loader.js!./public/index.html:4:10
- index.html:7 module.exports
[.]/[html-webpack-plugin]/lib/loader.js!./public/index.html:7:3
- index.js:284 Promise.resolve.then
[real]/[html-webpack-plugin]/index.js:284:18
- next_tick.js:188 process._tickCallback
internal/process/next_tick.js:188:7
Run Code Online (Sandbox Code Playgroud)
任何的想法?我不知道为什么这个问题会成功。谢谢你。
当您安装 firebase 工具时,它会为您生成一个公共文件夹。在那个公共文件夹中,有一个 index.html 文件(这个文件是错误的原因)。只需删除该 index.html 文件中的所有内容,然后替换为您自己的内容。