Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
informaticadiaz committed Jan 14, 2024
1 parent 801f82f commit f9bc209
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export default defineConfig({
plugins: [
react(),
VitePWA({
strategies: 'injectManifest',
srcDir: 'src',
filename: 'my-sw.js',
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'mask-icon.svg'],
manifest: {
name: 'Prensa Obrera',
Expand Down Expand Up @@ -45,6 +48,8 @@ export default defineConfig({
registerType: 'autoUpdate',
injectRegister: 'auto',
workbox: {
clientsClaim: true,
skipWaiting: true,
globPatterns: ['**/*.{js,css,html,ico,png,svg,webp}']
},
}),
Expand Down

0 comments on commit f9bc209

Please sign in to comment.