I have compiled my app via create react app: yarn build
//code is minified and obfuscated as expected
(我已经通过create react应用程序编译了我的应用程序: yarn build
//code is minified and obfuscated as expected
)
I have then deployed the app via both firebase serve
and firebase deploy
.(然后,我已经通过firebase serve
和firebase deploy
部署了该应用程序。)
my firebase.json:(我的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!(在Chrome开发者工具/“来源”标签中,列出了我的整个js代码库,没有缩小或混淆!)
- 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):(该结构看起来不像包含媒体的build文件夹...(字体必需):)
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"...(暴露整个js堆栈未缩小和/或没有任何混淆似乎非常“不安全” ...)
Again, and as always any and all direction is greatly appreciated!(再次,一如既往地非常感谢任何方向!)
ask by studiobrain translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…