Develop/JavaScript
[JavaScript] Vanilla JavaScript에 PWA 적용하기 with Webpack, Workbox
Vanilla JavaScript로 구현한 SPA에 PWA를 적용해보았다. 1. 패키지 설치npm i -D webpack-pwa-manifest workbox-webpack-plugin 2. Manifest 설정// webpack.common.jsconst WebpackPwaManifest = require('webpack-pwa-manifest');...plugin: [ ... new WebpackPwaManifest({ name: 'yummy', short_name: 'yummy', description: '맛집 정보 공유 웹앱', background_color: '#ffffff', crossorigin: 'anonymous', dir: 'ltr', ..