Skip to content

Commit

Permalink
feat: instal pwa plugin to the vite
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechmarek committed Jan 15, 2023
1 parent 54c64ea commit 71a5017
Show file tree
Hide file tree
Showing 3 changed files with 1,664 additions and 29 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"lint-staged": "^13.1.0",
"prettier": "2.8.3",
"typescript": "^4.9.3",
"vite": "^4.0.0"
"vite": "^4.0.0",
"vite-plugin-pwa": "^0.14.1"
}
}
9 changes: 5 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import { VitePWA } from 'vite-plugin-pwa';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
plugins: [react(), VitePWA()],
});
Loading

0 comments on commit 71a5017

Please sign in to comment.