-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
forge.config.js
44 lines (42 loc) · 1.24 KB
/
forge.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const path = require('path');
const isProd = process.env.NODE_ENV === 'production';
module.exports = {
packagerConfig: {
icon: path.resolve(__dirname, 'assets/icon.png'),
},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {},
},
{
name: '@electron-forge/maker-zip',
config: {},
},
{
name: '@electron-forge/maker-deb',
config: {},
},
],
plugins: [
[
'@electron-forge/plugin-webpack',
{
mainConfig: './config/webpack/webpack.main.config.js',
renderer: {
config: isProd
? './config/webpack/webpack.renderer.config.prod.js'
: './config/webpack/webpack.renderer.config.dev.js',
entryPoints: [
{
html: './src/index.html',
js: './src/index.tsx',
name: 'main_window',
prefixedEntries: isProd ? [] : ['react-hot-loader/patch'],
},
],
},
},
],
],
};