Hacker News Progressive Web Application built with vanilla JS and Web Components.
- Two bundles - legacy (for browsers that don't support
<script type=module>
) and modern (see Phillip Walton's great post for details) - PRPL pattern
- Route-level code splitting
- Critical CSS inlining
- Preload / prefetch resource hints
- App manifest
- Service Worker
- Lighthouse score 100/100
- Run
git clone https://github.com/alexnoz/vanilla-wc-hnpwa.git
to clone the repo cd vanilla-wc-hnpwa
- Run
yarn install
to install the dependencies - Run
yarn start
to kick offwebpack-dev-server
- Do something cool
- Run
yarn build
to build the production version of the app
These steps require firebase to be installed:
- Run
firebase serve
to serve the production version locally - Run
yarn run deploy
to deploy the app
- SSR