About this, #1
Sun Apr 16 2023
Iām trying to keep it simple stupid
, so here are some steps to get started and deploying to gh-pages.
- install svelte
npm create svelte@latest myapp
cd myapp
npm install
npm run dev
- add a static preprocessor and use it in
svelte.config.js
.
npm i -D @sveltejs/adapter-static
- add gh-pages and a deploy step
npm i -D gh-pages
"deploy": "vite build && touch build/.nojekyll && gh-pages -d build -t true",
- wohoo, check your
[username].github.io
, if you have configured your repo/Settings/Pages to be deployed from gh-pages branch everything should be deployed š