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 myappIf you don't want to keep all history of this project, delete .git hidden folder and init your new repo:
git initFinally install all dependencies:
npm installThat's all! You are ready to go!
To start webpack in dev mode with hot reload:
npm run devVisit localhost:8585 to see your app in the browser.
To generate production bundle:
npm run buildThis 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