Skip to content

Commit

Permalink
chore(vite): pwa generate sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Nov 16, 2021
1 parent 764a97f commit 1529af0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default defineConfig({
vitePackageVersion(),
vitePWA({
base: '/',
registerType: 'autoUpdate',
includeAssets: ['favicon.svg', 'favicon.ico', 'robots.txt', 'apple-touch-icon.png'],
manifest: {
name: 'Better Write',
Expand All @@ -44,7 +45,10 @@ export default defineConfig({
type: 'image/png',
}
]
}
},
workbox: {
sourcemap: true
}
})
],
build: {
Expand Down

0 comments on commit 1529af0

Please sign in to comment.