svelte-bootstrap-template Svelte Themes

Svelte Bootstrap Template

A template project with Svelte and Bootstrap 5.

Svelte app template with Bootstrap 5

This is a template to build web apps with Svelte and Bootstrap 5.

What is included

  • Svelte framework
  • Bootstrap 5
  • Webpack 5
  • Webpack dev server with hot reload

Get started

First clone this repo (replace myapp with the name of your app):

git clone https://github.com/aletome/svelte-bootstrap-template.git myapp
cd myapp

If you don't want to keep all history of this project, delete .git hidden folder and init your new repo:

git init

Finally install all dependencies:

npm install

That's all! You are ready to go!

CLI Commands

To start webpack in dev mode with hot reload:

npm run dev

Visit localhost:8585 to see your app in the browser.

To generate production bundle:

npm run build

This command creates index.html and bundel-xxxxx.js in public folder, where xxxxx is a hash that changes every build.

To generate development bundle with source map file:

npm run build-dev

Top categories

Loading Svelte Themes