Ionic — créer une PWA (Progressive Web Application) en quelques secondes

Modification du fichier angular.json

Ajout de 3 entrées :

  • “src/manifest.json”
  • “serviceWorker”: true,
    “ngswConfigPath”: “src/ngsw-config.json”
  • src/manifest.json
  • src/ngsw-config.json
  • @angular/pwa
  • @angular/service-worker

Modification de src/app/app.module.ts

Import de @angular/service-worker

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store