Firebase not running index.html file

前端 未结 17 2562
遥遥无期
遥遥无期 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:14

    This Worked for me

    First Stop the project and follow these steps
    
    npm install -g firebase-tools
    
    firebase login
    
    firebase init
    
    ? Are you ready to proceed? Yes
    ? Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your choices. Hosting: Configure and deploy Firebase Hosting sites
    
    ? What do you want to use as your public directory? dist
    ? Configure as a single-page app (rewrite all urls to /index.html)? Yes
    
    After initialization is completed makesure to delete the created dist file before next steps
    
    ng build --prod
    
    firebase deploy
    

提交回复
热议问题