File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 11const webpack = require ( 'webpack' ) ;
22const path = require ( 'path' ) ;
33const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
4- const BabiliPlugin = require ( 'babili-webpack-plugin' ) ;
54const 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 ,
You can’t perform that action at this time.
0 commit comments