A demo of the turf-buffer bug w/ rollup
npm installnpm run dev
- Run
npm run devto start a server with watching for app changes. - If you change
index.htmlyou'll need to restart your server. - If you want to run on a non-default port run
PORT=NEW_PORT npm run dev - Any files or folders in
assetswill be copied intopublic. - Any files referenced by
app.scsswill be built intopublic. - Any files referenced by
app.jswill be build intopublic.
- Run
npm run buildto copy and build all assets and hash the javascript and css built.
Configure s3 or cloudflare to server all files with a very aggressive cache. The content hashing will bust the caching for updated js and css files.
You'll want to serve all files with heavy caching except index.html (which should never be cached) and any icons or images from src/assets (unless you version these manually).
On CI server the steps to deploy will be roughly:
- Use a recent
nodeversion. npm install && npm run build.- Copy
publicfolder to somethign like s3 or cloudflare.