Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 834 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 834 Bytes

Basic Webpack 4 setup

This is a skeleton for creating a project that builds assets using Webpack. This is the features that are included:

  • basic folder structure
  • build images (jpg, png, svg)
  • compiles sass to css
  • js babel transpiler
  • support for typescript
  • bootstrap
  • jquery (exposed)
  • dev web server + hot reloading
  • development i production environment
  • source maps enabled for css and js files
  • enabled including html partials (html can include other html)
  • lazy loadinga enabled for js module (data-on-load)

Base for setting up this project is used from this tutorial: Setting up webpack 4 for a project

NPM commands

Open demo app: http://localhost:8080

npm run dev

Build production

npm run build