RIFT-15726 - improve load time by running minification on resulting js assets.
authorBob Gallagher <bob.gallagher@riftio.com>
Mon, 13 Mar 2017 20:41:02 +0000 (16:41 -0400)
committerBob Gallagher <bob.gallagher@riftio.com>
Mon, 13 Mar 2017 20:41:02 +0000 (16:41 -0400)
This resulted roughly in a 70% reduction in file size.

Change-Id: I562f4310ce638bfa994666f043f33fcbe78a471e
Signed-off-by: Bob Gallagher <bob.gallagher@riftio.com>
skyquake/scripts/build.sh

index 044268d..9d9d635 100755 (executable)
@@ -38,7 +38,7 @@ for f in *; do
         npm install
         echo 'Fetching third-party node_modules for '$f'...done'
         echo 'Packaging '$f' using webpack'
-        ./node_modules/.bin/webpack --progress --config webpack.production.config.js
+        ./node_modules/.bin/webpack --optimize-minimize --progress --config webpack.production.config.js
         echo 'Packaging '$f' using webpack... done'
         cd ..
         echo 'Building plugin '$f'... done'