Thanks for the article.
I however also encountered the same issue as federico riva in the comments here when running ‘npm run build’ and figured out the issue and I hope this will help other users.
I was using the webpack-simple configuration and for some reason when running the build process my index.html was not added to the ./dist folder. (So when running ‘firebase init’ it creates a default index.html file that will give you Firebase Hosting Setup Complete screen when deploying.)
How I fixed it:
- After running ‘npm run build’ and before running ‘firebase init’ copy and paste your index.html file into your ./dist directory.
- Open your newly copied index.html file and change the script src=”/dist/build.js” to src=”build.js”
- Run ‘firebase init’ and follow the steps as explained by Shayne (When asked to overwrite the index.html file — SELECT NO!)
- Run ‘firebase deploy’ and enjoy :)
You can probably change the settings in the webpack.config file to do this for you but I do not have that knowledge yet so this way will have to do for now.