diff --git a/packages/insomnia-app/package.json b/packages/insomnia-app/package.json index 5456f8c7c..674341d44 100644 --- a/packages/insomnia-app/package.json +++ b/packages/insomnia-app/package.json @@ -69,6 +69,7 @@ "insomnia-httpsnippet", "jwt-authentication", "moment", + "node-forge", "pdfjs-dist", "prop-types", "react", diff --git a/packages/insomnia-app/scripts/build.js b/packages/insomnia-app/scripts/build.js index 8b1ce4357..62bedc55e 100644 --- a/packages/insomnia-app/scripts/build.js +++ b/packages/insomnia-app/scripts/build.js @@ -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); } diff --git a/packages/insomnia-app/webpack/webpack.config.base.babel.js b/packages/insomnia-app/webpack/webpack.config.base.babel.js index 34a1d8167..424ba0034 100644 --- a/packages/insomnia-app/webpack/webpack.config.base.babel.js +++ b/packages/insomnia-app/webpack/webpack.config.base.babel.js @@ -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' }; diff --git a/packages/insomnia-app/webpack/webpack.config.production.babel.js b/packages/insomnia-app/webpack/webpack.config.production.babel.js index e3b0e3803..3b184c0e9 100644 --- a/packages/insomnia-app/webpack/webpack.config.production.babel.js +++ b/packages/insomnia-app/webpack/webpack.config.production.babel.js @@ -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({