From ae20b4849f80e4fa402938086ea005ea301137e5 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 27 Nov 2018 16:33:10 -0500 Subject: [PATCH] Minify webpack jsons --- src/Tgstation.Server.Host/ClientApp/package-lock.json | 9 +++++++++ src/Tgstation.Server.Host/ClientApp/package.json | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/ClientApp/package-lock.json b/src/Tgstation.Server.Host/ClientApp/package-lock.json index 9dabee9402..67004cb50c 100644 --- a/src/Tgstation.Server.Host/ClientApp/package-lock.json +++ b/src/Tgstation.Server.Host/ClientApp/package-lock.json @@ -6801,6 +6801,15 @@ "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", "dev": true }, + "minify-json": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/minify-json/-/minify-json-1.0.0.tgz", + "integrity": "sha1-tVufoZmNViO4za/L2+UQQvs+TGw=", + "dev": true, + "requires": { + "bluebird": "^3.5.0" + } + }, "minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", diff --git a/src/Tgstation.Server.Host/ClientApp/package.json b/src/Tgstation.Server.Host/ClientApp/package.json index a1fb5a800c..b2af8d04b2 100644 --- a/src/Tgstation.Server.Host/ClientApp/package.json +++ b/src/Tgstation.Server.Host/ClientApp/package.json @@ -5,12 +5,13 @@ "tgstation-server-control-panel": "^0.1.5" }, "scripts": { - "build": "rimraf build && react-scripts-ts build && cp-cli node_modules/tgstation-server-control-panel/build/public/ build/ && cp-cli ../../../build/tgs.ico build/favicon.ico && rimraf ../wwwroot && move-cli build ../wwwroot" + "build": "rimraf build && react-scripts-ts build && cp-cli node_modules/tgstation-server-control-panel/build/public/ build/ && cp-cli ../../../build/tgs.ico build/favicon.ico && minify-json build && rimraf ../wwwroot && move-cli build ../wwwroot" }, "devDependencies": { "@types/node": "^10.12.0", "@types/react-dom": "^16.0.9", "cp-cli": "^1.1.2", + "minify-json": "^1.0.0", "move-cli": "^1.2.0", "react-scripts-ts": "^3.1.0", "rimraf": "^2.6.2",