electron-userland / electron-userland/electron-webpack
How to add multi renderer entries support?
- Dominant language
- TypeScript
- Stars
- 902
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
I have tried to add `electron-webpack.yml`
```yml
title: true
renderer:
dll: ['vue']
webpackConfig: 'custom.webpack.renderer.js'
```
and the `custom.webpack.renderer.js` content like this
```js
module.exports = {
entry: function () {
return {
entry1: 'src/renderer/entry1.js',
entry2: 'src/renderer/entry2.js'
}
}
}
```
, but compile failed
```
ERROR in multi (webpack)-dev-server/client?http://localhost:9080 webpack/hot/dev-server entry.js
Module not found: Error: Can't resolve 'entry1.js' in 'xxx\electron-webpack-quick-start'
@ multi (webpack)-dev-server/client?http://localhost:9080 webpack/hot/dev-server entry1.js
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.