/templating-webpack-config

Bootstrap theming & handlebars templating. Use it as a starter/example.

Primary LanguageJavaScript

How to use

This project focuses on bootstrap theming and handlebars templating. Use it as an example. It may help you configure some of the packages utilized in this setup.

Install npm packages

npm install

Run the dev server

npm start

Go to http://localhost:8080/

Build

npm run build

Config includes

  • Handlebars templating
  • Webpack Dev Server
  • Webpack HMR for CSS
  • Live reloading for template files
  • Generate critical CSS on build
  • A starter CSS/JS for bootstrap theming
  • CSS and JS linting
  • Autoprefixer
  • PurgeCSS (remove unused CSS)