A full example with frontend(Ant Design Pro) and backend(Egg.js).
Egg has integrated with assets tools by egg-view-assets, so you don't have to start another command for serving assets.
$ npm run dev
npm run dev
will start a dev server for assets that configured in config.assets.devServer
.
Assets should be compiled before shipping.
$ npm run build
It will be generated to app/public
that hosted by Egg, due to the configration of ``.webpackrc`.
Start Egg with prod environment.
$ npm start
TODO
Please let us know how can we help. Do check out issues for bug reports or suggestions first.
To become a contributor, please follow our contributing guide.