minimalist and modern react boilerplate designed for minimal configuration.
note this uses a forked react build to work with es modules. there is optimisim that react will support an es module compatable build soon.
contents:
concepts:
included is es module shims, which includes polyfill support for importmaps
. these allow direct global imports. this is key in not requiring babel.
snowpack allows you to treeshake es module dependencies in a convinient way. there is a production command that will do the treeshaking, and a post npm install step which will localize the es modules.
yarn prepare
yarn optimize
workbox is configured to be run during build to generate the caching configuration.
intialization:
yarn pwa:init
to generate caching with each build
yarn pwa