Build preload script for production

This commit is contained in:
AkiraFukushima 2019-12-19 00:17:03 +09:00
parent b03f1a2dd3
commit 13d36ef60b
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ const MinifyPlugin = require('babel-minify-webpack-plugin')
let mainConfig = {
entry: {
main: path.join(__dirname, '../src/main/index.ts')
main: path.join(__dirname, '../src/main/index.ts'),
preload: path.join(__dirname, '../src/main/preload.js')
},
externals: [...Object.keys(dependencies || {})],
module: {