29 lines
964 B
JavaScript
29 lines
964 B
JavaScript
const path = require("path");
|
|
const nodeExternals = require('webpack-node-externals');
|
|
|
|
module.exports = {
|
|
lintOnSave: false,
|
|
pluginOptions: {
|
|
electronBuilder: {
|
|
|
|
mainProcessFile: "./src/init.ts",
|
|
rendererProcessFile: "./src/render/main.ts",
|
|
preload: "./src/render/preload.ts",
|
|
|
|
builderOptions: {
|
|
"appId": "com.crimata.ElectronUpdaterApp",
|
|
"artifactName": "${productName}-${version}.${ext}",
|
|
"publish": {
|
|
"provider": "generic",
|
|
"url": "https://gitlab.com/api/v4/projects/25637892/jobs/artifacts/main/raw/dist_electron?job=build"
|
|
}
|
|
},
|
|
|
|
chainWebpackMainProcess: (config) => {
|
|
// Chain webpack config for electron main process only
|
|
config.externals([nodeExternals({})])
|
|
config.resolve.extensions.add('.ts')
|
|
},
|
|
}
|
|
}
|
|
};
|