This template project uses Preact and Bootstrap 5 and has the following features:
preact-clias base templatebootstrap 5without plugins or extension (I mean pure bootstrap css)purgecssto purge unused css (usefull to size down bootstra.css file)
First clone this repo (replace myapp with the name of your app):
git clone https://github.com/aletome/preact-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!
# install dependencies
npm install
# serve with hot reload at localhost:8085
npm run dev
# build for production with minification and purge of unused css
npm run build
# test the production build locally
npm run serve
# run tests with jest and enzyme
npm run test
# purge css from build folder (it is automatically called from build command)
npm run purgecss