npx degit mzaini30/svelte my-project
cd my-project
npm i
Struktur folder
Keterangan
Folder
File Svelte
src/pages
Static files
public/dist
Output
public
Fitur
CSS
Menggunakan Bootstrap
Code splitting
Cukup jalankan
npm run build
Router berbasis file
Kita menggunakan Routify.
Hot module reload
Dia nggak mereset state saat kita development. Cukup jalankan:
npm run dev
SEO
Ini isi dari public/index.html:
<!-- Website ini dibuat oleh Zen duniazen.com--><!DOCTYPE html><htmllang="en"><head><metacharset='utf-8'><metaname='viewport' content='width=device-width,initial-scale=1'><title>Svelte Template</title><metaname="description" content="Template Svelte yang diolah oleh Zen"><metaproperty="og:image" content="/dist/jean.jpg"><linkrel='icon' type='image/png' href='/dist/ungu.png'><link
I'm Calin Baenen – AKA KattyTheEnby – a programmer born October 30th, 2006.
I love programming, it has been my passion since I was a kid, and will forever be my passion.
localhost:3000
React?
Express actually. Well all express apps run at 3000 by default.
Thanks. I usually using Svelte with port 5000. So, I forgot what port 3000 using to. Hahhhah
I love Svelte ❤ Have you checked out Sapper as well? 😉
I created my own Svelte template for my personal needs
mzaini30 / svelte
Instalasi
npx degit mzaini30/svelte my-project cd my-project npm i
Struktur folder
Fitur
CSS
Menggunakan Bootstrap
Code splitting
Cukup jalankan
Router berbasis file
Kita menggunakan Routify.
Hot module reload
Dia nggak mereset state saat kita development. Cukup jalankan:
SEO
Ini isi dari
public/index.html
:localhost:8080
I won
Dope comment!!
Hahaha, home sweet home 💯😄😄
Quite literally.