sub-web静态资源加载错误
Yofo-me opened this issue · 2 comments
Yofo-me commented
Yofo-me commented
一些错误
GET https://analytics.ytt.yt/umami.js net::ERR_ABORTED 502
Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
A bad HTTP response code (404) was received when fetching the script.
Error during service worker registration: TypeError: Failed to register a ServiceWorker for scope ('https://域名/') with script ('https://域名/sub-web.js'): A bad HTTP response code (404) was received when fetching the script.
GET https://域名/manifest.json 404 (Not Found)
Manifest: Line: 1, column: 1, Syntax error.
hinak0 commented
在vue.config.js
添加如下配置:
module.exports = {
publicPath: "./",
}
重新编译即可。
不要使用nginx的路由,太麻烦。