Skip to content

Commit

Permalink
chore: menifest 관련 추가 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
bbearcookie committed Nov 16, 2023
1 parent f36f3f2 commit 4192e1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/firebase-messaging-sw.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { precacheAndRoute } from 'workbox-precaching';

precacheAndRoute(self.__WB_MANIFEST);

self.addEventListener('install', function (e) {
console.log('[FCM] Service Worker Installed.');
self.skipWaiting();
Expand Down
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ export default defineConfig({
VitePWA({
registerType: 'autoUpdate',
injectRegister: 'auto',
strategies: 'injectManifest',
filename: 'firebase-messaging-sw.js',
devOptions: {
enabled: false,
type: 'module'
},
manifest: {
name: 'Moabam: 당신의 루틴을 지켜요!',
short_name: 'Moabam',
description: '성취감과 의무감을 더하는 루틴 관리 웹 앱',
theme_color: '#60D4DE',
icons: [
{
Expand Down

0 comments on commit 4192e1a

Please sign in to comment.