Even more optimizations

This commit is contained in:
Gregory Schier 2017-11-27 02:30:26 +00:00
parent d8135fa32b
commit 98baeac567
4 changed files with 7 additions and 3 deletions

View File

@ -69,6 +69,7 @@
"insomnia-httpsnippet",
"jwt-authentication",
"moment",
"node-forge",
"pdfjs-dist",
"prop-types",
"react",

View File

@ -84,7 +84,7 @@ async function copyFiles (relSource, relDest) {
async function install (relDir) {
return new Promise((resolve, reject) => {
const prefix = path.resolve(__dirname, relDir);
npm.load({prefix, production: true, optional: false}, err => {
npm.load({prefix, production: true, optional: false, }, err => {
if (err) {
return reject(err);
}

View File

@ -1,3 +1,4 @@
const webpack = require('webpack');
const path = require('path');
const pkg = require('../package.json');
@ -61,6 +62,8 @@ module.exports = {
// To get jsonlint working...
'file', 'system'
],
plugins: [],
plugins: [
new webpack.optimize.LimitChunkCountPlugin({maxChunks: 1})
],
target: 'electron-renderer'
};

View File

@ -3,7 +3,7 @@ const baseConfig = require('./webpack.config.base.babel');
module.exports = {
...baseConfig,
devtool: 'source-map',
devtool: false,
plugins: [
...baseConfig.plugins,
new webpack.DefinePlugin({