Support React Server Side Render File Memory Read for egg-webpack and egg-view-react-ssr. when the local development, wepback memory read the way to cover the local file read logic.
$ npm i egg-webpack-react --save-dev
- 3.x.x > Node 8
- 2.x.x > Node 6
// {app_root}/config/plugin.js
exports.webpackreact = {
enable: true,
package: 'egg-webpack-react',
};
// {app_root}/config/config.default.js
exports.webpackreact = {
};
see config/config.default.js for more detail.
- React Server Side Render Example, Please See egg-react-webpack-boilerplate
- React TypeScript Server Side Render Example, Please See egg-react-typescript-boilerplate
- React Server Side Render Framework Example, Please See res
Please open an issue here.