Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.08 KB

Preact PWA Starter

Preact starter template with light CSS framework, FontAwesome SVG, light state management (unistore). Update test

Features

  • High Lighthouse score,
  • Fully automatic code splitting for routes
  • Transparently code-split any component with an [async!] prefix
  • Auto-generated [Service Workers] for offline caching powered by [sw-precache]
  • [PRPL] pattern support for efficient loading
  • Zero-configuration pre-rendering / server-side rendering hydration
  • Support for CSS Modules, LESS, Sass, Stylus; with Autoprefixer
  • Monitor your bundle/chunk sizes with built-in tracking
  • Automatic app mounting, debug helpers & Hot Module Replacement
  • Light CSS Framework:
    • blazeui
    • spectre (git checkout spectre)

Installation

Clone the repo, cd to directory then npm install

CLI Commands

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# test the production build locally
npm run serve

# run tests with jest and preact-render-spy
npm run test