Skip to content

Commit bea45ee

Browse files
committed
Repaired package.json and webpack prod config to allow build to finish properly
1 parent 59354fa commit bea45ee

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@
8787
"name": "Dan Stein",
8888
"email": "50937807+danst3in@users.noreply.github.com",
8989
"url": "https://github.com/danst3in"
90+
},
91+
{
92+
"name": "Evan Grobar",
93+
"email": "egrobar@gmail.com",
94+
"url": "https://github.com/egrobar"
9095
}
9196
],
9297
"build": {

webpack.build.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
const webpack = require('webpack');
22
const path = require('path');
33
const HtmlWebpackPlugin = require('html-webpack-plugin');
4-
const BabiliPlugin = require('babili-webpack-plugin');
54
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
5+
const TerserPlugin = require('terser-webpack-plugin');
6+
const nodeExternals = require('webpack-node-externals');
7+
68

79
// Any directories you will be adding code/files into,
810
// need to be added to this array so webpack will pick them up
@@ -46,6 +48,11 @@ module.exports = {
4648
],
4749
},
4850
target: 'electron-renderer',
51+
optimization: {
52+
minimize: true,
53+
minimizer: [new TerserPlugin({})],
54+
},
55+
externals: [nodeExternals()],
4956
plugins: [
5057
new HtmlWebpackPlugin(),
5158
new MiniCssExtractPlugin({
@@ -57,7 +64,6 @@ module.exports = {
5764
new webpack.DefinePlugin({
5865
'process.env.NODE_ENV': JSON.stringify('production'),
5966
}),
60-
new BabiliPlugin(),
6167
],
6268
stats: {
6369
colors: true,

0 commit comments

Comments
 (0)