react-redux-universal-hot-example
react-redux-universal-hot-example copied to clipboard
How would I go about making multiple client entry points?
I have two closely related apps, Customer and Supplier. There are more to come.
There is a lot of code overlap between the different apps, but also a decent proportion of unique code.
How can I make multiple entry points / bundles to cater for this scenario with a single codebase?
@stheobald Did you figure this out?
This is from a year ago so not sure you're going to get a great answer @jahumes . You can add entry points to the webpack config by adding a line to the "entry" object on lines 20-26.
The OP really seems to be asking a software design question to me more than anything else and if that's what you're looking for vs. the webpack situation my answer would be to look at the "dependency injection" pattern. The javascript community has been calling it the "provider" pattern, same thing. I have an app in production with account/customer/reseller, exact same case.