大量的代码格式化
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 1m10s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 1m10s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
This commit is contained in:
@@ -14,7 +14,7 @@ export default defineConfig({
|
||||
{
|
||||
name: 'update-sw-version',
|
||||
apply: 'build',
|
||||
closeBundle() {
|
||||
closeBundle () {
|
||||
const swPath = resolve(fileURLToPath(new URL('.', import.meta.url)), 'dist/service-worker.js')
|
||||
if (existsSync(swPath)) {
|
||||
let content = readFileSync(swPath, 'utf8')
|
||||
@@ -29,7 +29,7 @@ export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
},
|
||||
}
|
||||
},
|
||||
build: {
|
||||
// 确保 Service Worker 和 manifest 被正确复制
|
||||
|
||||
Reference in New Issue
Block a user