mirror of
https://github.com/multipleof4/devsune.git
synced 2026-01-14 00:17:56 +00:00
Update vite.config.js
This commit is contained in:
@@ -3,7 +3,10 @@ import { VitePWA } from 'vite-plugin-pwa'
|
|||||||
import { createHtmlPlugin } from 'vite-plugin-html'
|
import { createHtmlPlugin } from 'vite-plugin-html'
|
||||||
|
|
||||||
const pwa = VitePWA({
|
const pwa = VitePWA({
|
||||||
|
strategies: 'injectManifest',
|
||||||
registerType: 'autoUpdate',
|
registerType: 'autoUpdate',
|
||||||
|
injectManifest: { injectionPoint: undefined },
|
||||||
|
devOptions: { enabled: true },
|
||||||
manifest: {
|
manifest: {
|
||||||
id: 'https://sune.planetrenox.com/',
|
id: 'https://sune.planetrenox.com/',
|
||||||
name: 'Sune',
|
name: 'Sune',
|
||||||
@@ -36,4 +39,7 @@ const html = createHtmlPlugin({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
export default defineConfig({ build: { outDir: 'docs', minify: false }, plugins: [pwa, html] })
|
export default defineConfig({
|
||||||
|
build: { outDir: 'docs', minify: false },
|
||||||
|
plugins: [pwa, html]
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user