This is a template to build web apps with Svelte and Bootstrap 5.
- Svelte framework
- Bootstrap 5
- Webpack 5
- Webpack dev server with hot reload
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!
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 create in public
folder index.html
and bundel-xxxxx.js
, where xxxxx
is a hash that changes every build.
To generate development bundle with source map file:
npm run build-dev