With unified configuration instead of using generators we can write pretty small and trivial babel plugins that will handle generating client entry init files and server entires.
Client
- Read
src/apps.js.
- Find definition for specific app (passed via options) and store it.
- Replace everything with static login from string.
- Append stored app definition.
- Profit - we can now directly use it (save on disk or use as a virtual module).
Server
- Read
src/apps.js
- Add wrap values in
Document, routes, reducers with require call.
- Profit - we can now directly use it (save on disk or use as a virtual module).