webpack / webpack-pwa

Example for a super simple PWA with webpack.
https://webpack.github.io/webpack-pwa/page-shell/dashboard.html
810 stars 52 forks source link

webpack-pwa

Super simple webpack PWA(Progressive Web App) example featuring

Build and Run it

npm install
npm run build-shell
cd dist
npm install node-static -g
static
open http://localhost:8080/dashboard.html

This builds the App Shell version.

To build the Page Shell version: replace npm run build-shell with npm run build-page.

Architecture

app shell vs page shell

App Shell

Page Shell

A hybrid approach can be used where shell and content is separated in two requests (see admin page as example). This makes sense when content is much bigger than shell and shell should be visible earlier.