easywebpack-react

React client render and server side render build solution for Webpack
- easywebpack-react ^4.x.x > webpack 4.x.x
- easywebpack-react ^3.x.x > webpack 3.x.x
Featues
- ✔︎ React Client Render and Server Side Render Build Mode
- ✔︎ React Single Appliaction and React Mutil Appliaction Build Mode
- ✔︎ Hot Reload, Css Hot Reload, Code Splitting, High Speed, Cache Build, Thread Build
- ✔︎ ES5/ES6/ES7, TypeScript, DLL, Css Module, Dynamic Import, AntD Dynamic Import
- ✔︎ Powerful Tool Chain easywebpack-cli
Documents
Install
$ npm i easywebpack-react --save-dev
QuickStart
$ npm i easywebpack-cli -g
$ easy init
$ npm start
Configuration
Write Webpack Config webpack.config.js
const easywebpack = require('easywebpack-react');
const webpack = easywebpack.webpack;
const merge = easywebpack.merge;
const webpackConfig = easywebpack.getWebpackConfig({
env,
target : 'web',
entry:{
app: 'src/index.js'
},
customize(webpackConfig) {
return webpackConfig;
}
});
Webpack Build
easy build --webpack
OR
webpack --config webpack.config.js
Application Development & Building
const webpackConfig = require('./webpack.config.js');
const easywebpack = require('easywebpack-react');
const webpackTool = new WebpackTool();
easywebpack.server(webpackConfig);
easywebpack.build(webpackConfig);
## Example
- [react-client-render-boilerplate](https:
- [egg-react-webpack-boilerplate](https:
- [egg-react-typescript-boilerplate](https:
- you can use [easywebpack-cli](https:
## Questions & Suggestions
Please open an issue [here](https:
## License
[MIT](LICENSE)