Smaller build size

This commit is contained in:
Gregory Schier committed 2017-11-27 02:06:15 +00:00
1 parent d1533c9813
commit d8135fa32b
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -66,6 +66,9 @@
"codemirror",
"codemirror-graphql",
"highlight.js",
"insomnia-httpsnippet",
"jwt-authentication",
"moment",
"pdfjs-dist",
"prop-types",
"react",
+1 -1
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}, err => {
npm.load({prefix, production: true, optional: false}, err => {
if (err) {
return reject(err);
}