Firebase not running index.html file

前端 未结 17 2542
遥遥无期
遥遥无期 2020-12-09 02:24

I\'m a pretty new programmer going through the Firebase tutorial. I have gone through steps 1-5 of the tutorial (https://codelabs.developers.google.com/codelabs/firebase-web

17条回答
  •  情书的邮戳
    2020-12-09 03:16

    For angular 2 or 6 with cli, use . (dist) as the public directory,

    $ ng build --prod
    $ cd dist/
    $ firebase init
     ? What do you want to use as your public directory? .
     ? Configure as a single-page app (rewrite all urls to /index.html)? Yes
     ? File ./index.html already exists. Overwrite? No
    $ firebase deploy
    

提交回复
热议问题