jarle / arkett

A minimalist note taking app that syncs to the cloud 📝
http://arkett.vercel.app
MIT License
1 stars 0 forks source link

pwa app #15

Closed jarle closed 2 years ago

jarle commented 2 years ago

https://www.npmjs.com/package/next-pwa

jarle commented 2 years ago

https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Installable_PWAs

jarle commented 2 years ago

Det viktigste for at dette skulle funke var å ha icons osv satt opp i manifest-fila. Og jeg skipper å bygge pwa i dev:


module.exports = (phase, { defaultConfig }) => {
  if (phase === PHASE_DEVELOPMENT_SERVER) {
    return config
  }
  else {
    return withPWA(config)
  }
}
jarle commented 2 years ago

nyttig for å konvertere 512x512 icon til manifest-fil: https://www.simicart.com/manifest-generator.html/