react-redux-universal-hot-example icon indicating copy to clipboard operation
react-redux-universal-hot-example copied to clipboard

How would I go about making multiple client entry points?

Open stheobald opened this issue 9 years ago • 2 comments

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 avatar Jan 26 '16 22:01 stheobald

@stheobald Did you figure this out?

jahumes avatar Feb 25 '17 23:02 jahumes

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.

stevenaldinger avatar Feb 26 '17 06:02 stevenaldinger