/webpack-starter

a starter for webpack

Primary LanguageJavaScript

webpack-starter

Quickstart

To set up this project on your local machine:

  • Webpack
$ npm install webpack -g
  • Webpack Dev Server
$ npm install webpack-dev-server -g
  • NPM Dependancies
$ npm install
  • Start webpack server (for JS) and nodemon (for CSS) both via npm build
$ npm run work

Open http://localhost:8080/webpack-dev-server/bundle

TODO

  • set up chunks for different pages & lazy loading page-specific js
  • set up deploy/build npm scripts for css & html