A fully fledged offline-first PWA boilerplate for React and TypeScript with server side rendering using varan and Sanity. Live updated preview mode.
DEMO: HERE
Note that these badges are set up for the source boilerplate master branch and will not be correct in your own fork of the boilerplate.
Start a development server with hot reloading
npm run start:watchBuild a production build
npm run buildStart the production server
npm startAdd the following npm script in your package.json and push code to heroku as normal using git.
"heroku-postbuild": "npm install --only=dev && npm run build && npm prune --production"
This project uses browserslist. By default the browser support list is defined in the package.json file, but you can use a .browserlistrc file if you prefer.
You can create or bring your own webpack configuration files, though it is recommended to extend the default varan webpack configurations to take advantage of useful defaults and optimizations. See varan documentation for more information.