mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-07 04:09:17 +02:00
added version info and reload option
This commit is contained in:
@@ -33,7 +33,7 @@ export default defineConfig({
|
||||
"apple-touch-icon.png",
|
||||
"mask-icon.svg",
|
||||
"robots.txt",
|
||||
"sitemap.xml"
|
||||
"sitemap.xml",
|
||||
],
|
||||
manifest: {
|
||||
name: "HTWKalender",
|
||||
@@ -87,16 +87,15 @@ export default defineConfig({
|
||||
],
|
||||
},
|
||||
registerType: "autoUpdate",
|
||||
devOptions: {
|
||||
enabled: true,
|
||||
/* when using generateSW the PWA plugin will switch to classic */
|
||||
type: "module",
|
||||
navigateFallback: "index.html",
|
||||
suppressWarnings: true,
|
||||
},
|
||||
strategies: "injectManifest",
|
||||
injectManifest: {
|
||||
globPatterns: ["**/*.{js,css,html,png,svg}"],
|
||||
},
|
||||
}),
|
||||
],
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||
@@ -116,6 +115,9 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
},
|
||||
build: {
|
||||
sourcemap: true,
|
||||
},
|
||||
esbuild: {
|
||||
supported: {
|
||||
"top-level-await": true,
|
||||
|
Reference in New Issue
Block a user