npm install lennon-react-webpack-template
- [x] Webpack and Webpack-Dev-Server, including hot-loader
- [x] Babel and JSX
- [x] Mocha Unit tests (optional)
- [x] EsLint Support
- [x] No dependency on grunt, gulp or the next hot taskrunner!
- [x] The dynamic webpack configuration is clunky, there must be a better way to do that!
- [x] Karmas webpack configuration is not included in the global webpack.config.js file, but it really should
bash
Start for development
npm start # or
npm run serveStart the dev-server with the dist version
npm run serve:distJust build the dist version and copy static files
npm run distRun unit tests
npm testLint all files in src (also automatically done AFTER tests are run)
npm run lintClean up the dist directory
npm run cleanJust copy the static assets
npm run copy
`You can also use your globally installed version of webpack like this:
`bash
Build or run the dev version:
webpack
webpack --env=devwebpack-dev-server
webpack-dev-server --env=dev
Build or run the dist version
webpack --env=dist
webpack-dev-server --env=dist
``