From 24a8e782d8b2adb208d9cfb8659450395e2e2a77 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Dec 2017 09:04:52 +0100 Subject: Add bootstrap analyzer and optimize build --- scripts/build/client.sh | 2 +- scripts/client-report.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 scripts/client-report.sh (limited to 'scripts') diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 8e8da7cbc..e3137df37 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -4,5 +4,5 @@ cd client || exit -1 rm -rf ./dist ./compiled -npm run ng build -- --prod +npm run ng build -- --prod --stats-json NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js diff --git a/scripts/client-report.sh b/scripts/client-report.sh new file mode 100755 index 000000000..586cc2e47 --- /dev/null +++ b/scripts/client-report.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cd client || exit -1 + +npm run webpack-bundle-analyzer ./dist/stats.json -- cgit v1.2.3