mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-27 00:59:18 -04:00
Smaller build size
This commit is contained in:
1 parent
d1533c9813
commit
d8135fa32b
2 files changed
+4
-1
No files matched your search
@@ -66,6 +66,9 @@
|
||||
"codemirror",
|
||||
"codemirror-graphql",
|
||||
"highlight.js",
|
||||
"insomnia-httpsnippet",
|
||||
"jwt-authentication",
|
||||
"moment",
|
||||
"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}, err => {
|
||||
npm.load({prefix, production: true, optional: false}, err => {
|
||||
if (err) {
|
||||
return reject(err);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user