mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-06-27 18:25:20 +08:00
6120960959411bc737a81627dfc09e0fc947b490
Welcome to react-webpack-template
This repository holds a base template for the new version of generator-react-webpack. It can be understood as the prototype for newly generated projects.
Features
The following features are planned to be included in the final version:
- Webpack and Webpack-Dev-Server, including hot-loader
- Babel and JSX
- Mocha Unit tests (optional)
- React.Router
- EsLint Support
- No dependency on grunt, gulp or the next hot taskrunner!
What is it for?
This template can be used directly for the creation of new projects. Also it will be the "template" for the next version of generator-react-webpack.
Using it
The template is available via webpack. The following commands are available:
# Start for development
npm start # or
npm run serve
# Start the dev-server with the dist version
npm run servedist
# Just build the dist version
npm run dist
# Run unit tests
npm test
# Lint all files in src (also automatically done AFTER tests are run)
npm run lint
You can also use your globally installed version of webpack like this:
# Build or run the dev version:
webpack
webpack --env=dev
webpack-dev-server
webpack-dev-server --env=dev
# Build or run the dist version
webpack --env=dist
webpack-dev-server --env=dist
License
react-webpack-template is available under MIT-License and can therefore be used in any project free of charge.
Contributors
- Weblogixx (cs@weblogixx.de)
Languages
JavaScript
93%
HTML
4.4%
CSS
2.6%