Vue-cli: Progressive Web App template

Created on 7 Mar 2017  路  6Comments  路  Source: vuejs/vue-cli

@yyx990803 and I have talked about working on an official PWA template for Vue 馃摫

There are a few different options for what this could include:

  • Web Application Manifest
  • Default favicons (minimalist setup from realfavicongenerator.net)
  • Service Worker precaching + runtime caching via sw-precache-webpack-plugin
  • Application Shell architecture
  • Code-splitting by default with vue-router

If we wanted to go even more ambitious we could cover:

  • PRPL pattern support (using something like preload-webpack-plugin)
  • Simple server-side rendering + pre-fetching
  • CSS extraction for production

Requirements

  • Aim to score as close to 100/100 on Lighthouse
  • Must be straight-forward to use. If we make it inherently complex, it will lose value to end users.

Prior-art - PWA templates and boilerplates 馃帹

Vue.js PWAs (open-source) 馃憪

Other references 馃摎

Initially, I would love to get a feel for what would considered palatable for an MVP. There's technically nothing stopping us baking in everything in the above list, but let's talk and figure out a path forward 馃殌

Most helpful comment

I've created https://github.com/vuejs/pwa and sent an invite for collaboration. We'll move it to vuejs-templates once it's ready.

All 6 comments

Thanks Addy! The list looks good and totally feasible. The only thing I'd consider is whether we want to include SSR for now, since SSR comes with some tradeoffs in increased dev and deployment complexity which may not be a net win for all apps. We can start with a version without SSR and then work on a separate one that uses SSR.

The only thing I'd consider is whether we want to include SSR for now, since SSR comes with some tradeoffs in increased dev and deployment complexity which may not be a net win for all apps. We can start with a version without SSR and then work on a separate one that uses SSR.

This plan of action sgtm 馃憤

What's the best way to get started? Worth us creating a new empty repo on the vuejs org to start on a PR?

I've created https://github.com/vuejs/pwa and sent an invite for collaboration. We'll move it to vuejs-templates once it's ready.

Awesome. Thanks, @yyx990803!

This is great news. Just curious if there is a posted timeline and roadmap for this ?
I'd be interested in assisting if possible.

Closing this now that the template exists at https://github.com/vuejs-templates/pwa and it's ready
馃憦 @addyosmani

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Benzenes picture Benzenes  路  3Comments

OmgImAlexis picture OmgImAlexis  路  3Comments

BusyHe picture BusyHe  路  3Comments

joshuajohnson814 picture joshuajohnson814  路  3Comments

b-zee picture b-zee  路  3Comments