fix some bugs
This commit is contained in:
+17
-1
@@ -23,7 +23,7 @@ export default defineConfig({
|
||||
enabled: true
|
||||
},
|
||||
workbox: {
|
||||
cleanupOutdatedCaches: false,
|
||||
cleanupOutdatedCaches: true,
|
||||
clientsClaim: true,
|
||||
skipWaiting: true
|
||||
},
|
||||
@@ -93,6 +93,22 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 3100,
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (
|
||||
id.includes('node_modules/moment-jalaali')
|
||||
|| id.includes('node_modules/jalaali-js')
|
||||
|| id.includes('node_modules/moment/')
|
||||
|| id.includes('/src/utils/useDateTime')
|
||||
) {
|
||||
return 'datetime'
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
// base: `/single`,
|
||||
// base: `/customer`,
|
||||
css: {
|
||||
|
||||
Reference in New Issue
Block a user