-
starter using webpack and NPM as a build tool (http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/)
-
webpack setup based on: http://christianalfoni.github.io/javascript/2014/12/13/did-you-know-webpack-and-react-is-awesome.html & http://christianalfoni.com/articles/2015_04_19_The-ultimate-webpack-setup
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
- set up chunks for different pages & lazy loading page-specific js
- set up deploy/build npm scripts for css & html