dev-sidecar/packages/gui/vue.config.js

52 lines
1.4 KiB
JavaScript
Raw Normal View History

2020-11-06 10:59:54 +00:00
const path = require('path')
2020-10-24 13:22:44 +00:00
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: [
{
2020-10-25 13:04:28 +00:00
from: 'extra',
to: 'extra'
2020-10-24 13:22:44 +00:00
}
2020-11-07 18:40:06 +00:00
],
appId: 'dev-sidecar',
productName: 'Dev-Sidecar',
// eslint-disable-next-line no-template-curly-in-string
artifactName: 'Dev-Sidecar-${version}.${ext}',
copyright: 'Copyright © 2020',
nsis: {
oneClick: false,
perMachine: false,
allowElevation: true,
allowToChangeInstallationDirectory: true
},
compression: 'maximum'
2020-11-06 10:59:54 +00:00
},
chainWebpackMainProcess (config) {
config.entry('mitmproxy').add(path.join(__dirname, 'src/bridge/mitmproxy.js'))
2020-10-24 13:22:44 +00:00
}
}
}
}