mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Even more optimizations
This commit is contained in:
parent
d8135fa32b
commit
98baeac567
@ -69,6 +69,7 @@
|
||||
"insomnia-httpsnippet",
|
||||
"jwt-authentication",
|
||||
"moment",
|
||||
"node-forge",
|
||||
"pdfjs-dist",
|
||||
"prop-types",
|
||||
"react",
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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'
|
||||
};
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user