Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (35 loc) · 1.11 KB

File metadata and controls

51 lines (35 loc) · 1.11 KB

preact-bootstrap-template

This template project uses Preact and Bootstrap 5 and has the following features:

  • preact-cli as base template
  • bootstrap 5 without plugins or extension (I mean pure bootstrap css)
  • purgecss to purge unused css (usefull to size down bootstra.css file)

Get started

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

git clone https://github.com/aletome/preact-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

# 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