Skip to content

Commit 8ff9f97

Browse files
committed
update
1 parent 43ff75f commit 8ff9f97

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

apps/bplan-client/vite.config.mts

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ export default defineConfig({
1616
plugins: [
1717
unoCss('../../uno.config.ts'),
1818
vitePwa({
19-
base: '/',
20-
buildBase: '/_build/',
21-
// filename: 'sw.ts',
19+
filename: 'sw.ts',
2220
includeAssets: ['favicon.svg', 'robots.txt', '*.svg', '*.png', '*.html'],
2321
injectRegister: null,
2422
manifest: false,
2523
registerType: 'prompt',
26-
// srcDir: 'src',
27-
strategies: 'generateSW',
24+
srcDir: 'src',
25+
strategies: 'injectManifest',
2826
// workbox: {
2927
// // Only precache these files - html should be excluded
3028
// globPatterns: ['**/*.{js,css,ogg,html}'],
@@ -63,16 +61,16 @@ export default defineConfig({
6361
// },
6462
// ],
6563
// },
66-
workbox: {
67-
globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
68-
modifyURLPrefix: {
69-
'': '_build/',
70-
// './': '_build/',
71-
// '/index.html': '/index.html',
72-
},
73-
// navigateFallback: '/index.html',
74-
inlineWorkboxRuntime: true,
75-
},
64+
// workbox: {
65+
// globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
66+
// modifyURLPrefix: {
67+
// '': '_build/',
68+
// // './': '_build/',
69+
// // '/index.html': '/index.html',
70+
// },
71+
// // navigateFallback: '/index.html',
72+
// inlineWorkboxRuntime: true,
73+
// },
7674
}),
7775
] as any,
7876
resolve: {

0 commit comments

Comments
 (0)