/pwa-boilerplate

Boilerplate for a PWA with Webpack 4, Vue, SSR, HMR, service worker chaching, and every other bell and whistle you should have on a modern PWA

Primary LanguageJavaScript

Gettings started

Run eject.sh to start a fresh git history for your own project. Run npm run dev to start webpacking and serving to localhost:3005

Npm Scripts

  • dev: Starts webpacking of the client and server, and starts serving the content on port 3005
  • production: Starts the server in production mode (Don't forget to pack first)
  • pack-production: Runs webpack in production mode for the client and server
  • pack-client-production: Production mode packs the client only
  • pack-server-production: Production mode packs the server only
  • clean: deletes files in the dist directory

HTTPS/HTTP2

The application serves up only http and expects you to use a reverse proxy for TLS. For local testing of Http2 there is an included docker compose file and and HAProxy config. For deployment, using HAProxy via the included config is also reccomended.

Things to edit for your own project

Customize config.js Customize public/manifest.json Add icons Author in index.template.html theme color in index.template.html