My personal Svelte boilerplate. Preview on Vercel. āļø
Besides the additional dependencies and files, I've made a couple more changes to Svelte's default boilerplate:
rollup.config.js
to account for additional dependencies and added --single
flag to npm run dev
command so page refreshes won't spit out a 404public/global.css
to src/assets/scss/globals/styles.scss
On VS Code:
.svelte
files.svelte
support and formattingSetup in global settings.json
:
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
}
.scss
support with <style lang="scss">..</style>
<Route>
and <Link to="..">
-based routingnpm install
npm run dev
First-time deployment with Vercel:
npm run build
vercel deploy --name app-name
Following deployments, from project root:
npm run build
vercel deploy --prod
š Last revised on July 2021 š