You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
928 B
40 lines
928 B
4 years ago
|
module.exports = {
|
||
|
configureWebpack: config => {
|
||
|
const configNew = {
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.json5$/i,
|
||
|
loader: 'json5-loader',
|
||
|
options: {
|
||
|
esModule: false
|
||
|
},
|
||
|
type: 'javascript/auto'
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
return configNew
|
||
|
},
|
||
|
pluginOptions: {
|
||
|
electronBuilder: {
|
||
|
nodeIntegration: true,
|
||
|
// Provide an array of files that, when changed, will recompile the main process and restart Electron
|
||
|
// Your main process file will be added by default
|
||
|
mainProcessWatch: ['src/bridge', 'src/*.js', 'node_modules/dev-sidecar/src'],
|
||
|
builderOptions: {
|
||
|
extraResources: [
|
||
|
{
|
||
|
from: 'src/config.json5',
|
||
|
to: 'app/config.json5'
|
||
|
},
|
||
|
{
|
||
|
from: 'public',
|
||
|
to: 'public'
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|