A template for rollup, svelte, and sass.
${PORT:-7000}
)<link>
.npm install
.git init
and git add remote origin URL_TO_ORIGIN
(fix URL first).npm run dev
to start a server with watching for app changes.index.html
you'll need to restart your server.PORT=NEW_PORT npm run dev
assets
will be copied into public
.app.scss
will be built into public
.app.js
will be build into public
.npm run build
to 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:
node
version.npm install && npm run build
.public
folder to somethign like s3 or cloudflare.