Trying to get the best of both worlds: fast and easy svelte development with Sapper bake out html deploy.
Clone the repo and run npm install
.
npm run dev
Modify content in src
and public/assets
.
For github deploy:
npm run deploy
make github
You need to modify the basepath in package.json
depending on where it is hosted.
Must put browser-dependent modules with dynamic load in onMount
:
onMount(async () => {
const module = await import("tone");
if (!Tone) Tone = module.default;
});