已部署的 Web 应用程序仍会在 Chrome javascript 控制台 Flutter 中打印所有注释掉的打印语句
Deployed web app still prints all commented out prints statements in Chrome javascript console Flutter
今天我开始深入研究如何将我的 Web 应用程序部署到 Firebase 托管。
我因此注释掉了代码中的所有 print
语句,运行 flutter clean
,然后 flutter build web
然后将其部署到 firebase。
现在,一切顺利,除了在 Chrome 的 Javascript 控制台中,我仍然得到所有打印件。
我尝试在构建文件夹中没有文件的情况下进行部署,并且在刷新浏览器时有效地看到了 404 屏幕,所以我猜这与 firebase 缓存无关。
我还应该尝试什么?
非常感谢。
我的firebase.json是:
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"site": "fixit-demo-web",
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
},
"storage": {
"rules": "storage.rules"
}
}
在此处找到解决方案Firebase Hosting Flutter Web App not clearing Cache of first deploy
我错过了给一个并更新我的 index.html
文件中的版本。
今天我开始深入研究如何将我的 Web 应用程序部署到 Firebase 托管。
我因此注释掉了代码中的所有 print
语句,运行 flutter clean
,然后 flutter build web
然后将其部署到 firebase。
现在,一切顺利,除了在 Chrome 的 Javascript 控制台中,我仍然得到所有打印件。
我尝试在构建文件夹中没有文件的情况下进行部署,并且在刷新浏览器时有效地看到了 404 屏幕,所以我猜这与 firebase 缓存无关。 我还应该尝试什么? 非常感谢。
我的firebase.json是:
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"site": "fixit-demo-web",
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
},
"storage": {
"rules": "storage.rules"
}
}
在此处找到解决方案Firebase Hosting Flutter Web App not clearing Cache of first deploy
我错过了给一个并更新我的 index.html
文件中的版本。