forked from unknownskl/greenlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextron.config.js
29 lines (27 loc) · 944 Bytes
/
nextron.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
module.exports = {
// // specify an alternate main src directory, defaults to 'main'
// mainSrcDir: 'main',
// // specify an alternate renderer src directory, defaults to 'renderer'
// rendererSrcDir: 'renderer',
// main process' webpack config
webpack: (config, env) => {
config.entry.background = './main/application.ts'
config.entry.preload = './main/preload.ts'
config.module.rules.push({
test: /\.node$/,
loader: "node-loader",
})
return config;
},
// webpack: (defaultConfig, env) => Object.assign(defaultConfig, {
// entry: {
// background: './main/application.ts',
// },
// module: {
// rules: [...(defaultConfig.module.rules ? defaultConfig.module.rules : []), {
// test: /\.node$/,
// loader: "node-loader",
// }]
// }
// }),
};