diff --git a/electron/webpack.config.js b/electron/webpack.config.js index aa82232..0604904 100644 --- a/electron/webpack.config.js +++ b/electron/webpack.config.js @@ -132,13 +132,13 @@ const mainConfig = { context: path.resolve(__dirname, '..', 'chat', 'preview', 'assets') }, { - from: path.resolve(__dirname, '..', 'node_modules', '@cliqz', 'adblocker-electron-preload', 'dist', 'cjs', 'preload.cjs').replace(/\\/g, '/'), + from: path.resolve(__dirname, '..', 'node_modules', '@cliqz', 'adblocker-electron-preload', 'dist', 'preload.cjs.js').replace(/\\/g, '/'), to: path.join('preview', 'assets', 'adblocker', 'preload.cjs.js'), toType: 'file', context: path.resolve(__dirname, '..', 'node_modules', '@cliqz', 'adblocker-electron-preload', 'dist') }, { - from: path.resolve(__dirname, '..', 'node_modules', '@cliqz', 'adblocker-electron-preload', 'dist', 'src', 'preload.js').replace(/\\/g, '/'), + from: path.resolve(__dirname, '..', 'node_modules', '@cliqz', 'adblocker-electron-preload', 'dist', 'preload.es6.js').replace(/\\/g, '/'), to: path.join('preview', 'assets', 'adblocker', 'preload.js'), toType: 'file', context: path.resolve(__dirname, '..', 'node_modules', '@cliqz', 'adblocker-electron-preload', 'dist')