- Install Nodejs @latest
# Ubuntu
sudo apt install nodejs
# Windows
sudo choco install nodejs
# asdf
asdf install nodejs latest
asdf global nodejs latest
- pnpm
npm install -g pnpm
Install deps
pnpm i
Run dev server @ localhost:3000
pnpm dev
! For Windows' Users
Modify package.json
, use set
instead of export
for all places appropriate.
- "dev:kit": "export NODE_OPTIONS='--max_old_space_size=20480' && MODE=development svelte-kit dev --host",
+ "dev:kit": "set NODE_OPTIONS='--max_old_space_size=20480' && MODE=development svelte-kit dev --host",
Or, you may consider using cross-env
from kentcdodds/cross-env ( NPM: cross-env ).
pnpm build
pnpm preview
netlify sites:create
or
netlify link
netlify build
netlify deploy
netlify deploy --prod
- Netlify: https://www.netlify.com
- avif-cli: https://github.com/lovell/avif-cli
- icons: https://icones.js.org/