4
votes

I develop and app with create react app (https://github.com/facebookincubator/create-react-app).

I create a production version with:

npm run build

This create a folder /build and I upload this with firebase client:

firebase deploy

All works perfect but in the web app, webpack, show all my code without uglify (see the folder webpack://)

How I can remove this folder from react or firebase hosting? This folder is not in /build folder.

enter image description here

1

1 Answers

5
votes

The source is shown because you're deploying a .js.map file with your project. You can delete the file after building, or just add it to your Firebase ignore so it doesn't deploy.