I’ve been developing a large Aurelia app for some time and love the framework. It’s being built via the CLI with webpack as a ‘standard’ single page app.
After a recent company merger we’ve decided that the new partner company will start developing in Aurelia for new functionality to take advantage of the component suite that we’ve already built up to get standard styling and functionality between components.
Our new partners currently cannot move to developing everything as a SPA as there are security mechanisms that are dependent on full page refreshes that we cannot overcome at the moment, so we are looking to implement new functionality as mini SPA’s on each new page.
The long term goal will be for the entire application to be a SPA, but it will take time to get there.
In the meanwhile, I’m wondering what the best approach for building and bundling each of the mini SPA’s, so that we can take advantage of the components that we’ve already written. Is there any way we could structure the webpack or CLI bundler builds to cater for this scenario?
Would I need to have a build for each mini-SPA?
The source code for both applications will be in separate folders, so multiple webpack configs would be possible.