Personal collection of trying out small things. Demo
npm initdownloads all required dependenciesnpm startruns the app in the development mode, open http://localhost:8080npm run buildbuilds a static copy of the app underbuild/npm run deploybuilds a static copy of your app todocs/
npx create-snowpack-app ui-experiments --template snowpack-svelte-ts-tw- Adaptions:
- PNPM: —use-pnpm
- Official template: @snowpack/app-template-svelte-typescript
- Adaptions:
- Copy
.prettierrcand.prettierignoreto project - Fix deployment to github pages:
- Add empty
docs/.nojekyllto fix references to__snowpack__and_dist_ - Make links in index.html relative
- Fix other references by setting baseUrl and webModulesUrl
- Add empty
See: