Commit d9ad13ec authored by Anton's avatar Anton

Refactor webpack config for electron main process

parent 198e75b4
Pipeline #13081 passed with stage
in 8 minutes and 20 seconds
......@@ -38,8 +38,6 @@ module.exports = function (ctx) {
// useNotifier: false,
extendWebpack (cfg) {
cfg.externals = Object.assign({
keytar: 'commonjs keytar',
// FIXME: nedb external causes browser version to fail
nedb: 'commonjs nedb',
'fluent-ffmpeg': 'commonjs fluent-ffmpeg',
'open-graph-scraper': 'commonjs open-graph-scraper',
......@@ -257,17 +255,9 @@ module.exports = function (ctx) {
electron: {
bundler: 'builder', // or 'packager'
extendWebpack (cfg) {
// do something with cfg
},
packager: {
// OS X / Mac App Store
// appBundleId: '',
// appCategoryType: '',
// osxSign: '',
// protocol: 'myapp://path',
// Window only
// win32metadata: { ... }
cfg.externals = Object.assign({
keytar: 'commonjs keytar'
}, cfg.externals)
},
builder: {
// https://www.electron.build/configuration/configuration
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment