ollesvelte Svelte Themes

Ollesvelte

šŸŠ svelte boilerplate

Ollesvelte

My personal Svelte boilerplate. Preview on Vercel. āœŒļø

Notable changes

Besides the additional dependencies and files, I've made a couple more changes to Svelte's default boilerplate:

  • Tweaked 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 404
  • Moved global styles from public/global.css to src/assets/scss/globals/styles.scss
  • Enhanced file structure and index page to what I like to start off with

Extensions

On VS Code:

Setup in global settings.json:

"editor.defaultFormatter": "esbenp.prettier-vscode",
"[svelte]": {
  "editor.defaultFormatter": "svelte.svelte-vscode"
}

Dependencies

Scripts

Setup

npm install
npm run dev

Deployment

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 šŸ‰

Top categories

Loading Svelte Themes