React Webpack Template 2.0 (alpha)
A flexible, easy to use boilerplate to quickly get started with Webpack, Babel and React.

Usage:
You may use this template either directly (by cloning this git repository) or by using generator-react-webpack.
Features
The following features are currently included out of the box:
Whats new in Version 2.x?
- Support for Bower-Webpack has been removed. Most modules are fetched via npm anyway.
- Support for the global styles folder is deprecated. This function will be removed in one of the next versions.
Common Questions:
-
I want to use react-router, but I dont know how to set it up:
FOLLOWS
-
I want to use less/sass/whatever, but get an error when requiring the file:
We currently do not ship the needed webpack modules. This is done on purpose, as we dont want you to install too much dependencies without using them. If you do not use a css precompiler, chance is you wont even notice it. If you need one, just install the required webpack loader (e.g. for less via npm install --save-dev less-loader
).
-
I want to change/add/remove one of the given configs for webpack:
The webpack configuration is located in conf/webpack
. All changes in Base.js will get delegated to all webpack configurations, so you will just have to update this file for adding loaders etc. You may add your own configurations at any time. Just make sure to extend WebpackBaseConfig
to make it work. When ready, just update conf/webpack/index.js
with your wanted options to make them work.
-
Where do I find configuration options for insert tool of choice here:
Configuration options are located either directly in the project root (as for .babelrc, webpack.config.js, karma.conf.js...) or as a folder in the conf/ directory.
Using it
The template uses webpack as build tool to serve files and run tests. The following commands are available:
License
react-webpack-template is available under MIT-License and can therefore be used in any project free of charge.
Contributors