I have compiled my app via create react app: yarn build //code is minified and obfuscated as expected
I have then deployed the app via both firebase serve and firebase deploy.
my firebase.json:
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "build",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
All is deployed "almost as expected", with 2 caveats:
- inside Chrome developer tools/ Sources tab, my entire js codebase is listed with no minification and or obfuscation!
- my fonts are not being deployed as the media folder doesnt seem to transfer
The structure looks nothing like the build folder which contains the media... (necessary for fonts):
Am I setting something up incorrectly, deploying the wrong folder or possibly not ignoring something I should be? Exposing the entire js stack unminified and or without any obfuscation seems very "un-secure"...
Again, and as always any and all direction is greatly appreciated!


builddirectory. So it seems like you have your raw source code end up in that directory. How that happens is unrelated to Firebase, but given this first line of thecreate-react-apptag seems like it might be expected behavior for that: "create-react-app is a starter-kit for creating React apps with no build configuration."serve -s buildhas all source files included, so this absolutely rules out firebase. Anycreate-react-apppeeps wana chime in?rm build/static/js/*.maprm build/static/css/*.map