I’m looking to convert our Electron app from jspm/Systemjs to Webpack. We’ve recently converted to a monorepo so that we can release parts of our app as npm modules and ideally we’d like all module resolution to go through node_modules
rather than the crazy hybrid combination we’re currently using.
As a bonus of using Webpack, we’re hoping to be able to define multiple entry points. With this we can more easily bundle for multiple windows. Depending on the functionality required in a window, we would just point the window at the correct entry point. I’m guessing for this we will have to define a Aurelia app for each entry point?
Specifically, I’ve been trying to combine the webpack config from Github Desktop with the one in the latest skeleton. The Github Desktop webpack config is ideal as it bundles the entire node_modules
while taking care of native .node
modules. Does the aurelia-webpack-plugin
support multiple entry points?
The Github Desktop app uses react so can define the entry points like this:
entry: { renderer: path.resolve(__dirname, 'src/ui/index') },
target: 'electron-renderer',
The aurelia-webpack-plugin
seems to require pointing at the bootstrapper:
entry: { app: ['aurelia-bootstrapper'] },
Is there any way round this or am I going to have to wait for Aurelia to support Webpack without the need for aurelia-webpack-plugin
?