From: Bob Gallagher Date: Mon, 13 Mar 2017 20:41:02 +0000 (-0400) Subject: RIFT-15726 - improve load time by running minification on resulting js assets. X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=072388a12f3b46b51196239f0b7fc32ec1ae14b1;p=osm%2FUI.git RIFT-15726 - improve load time by running minification on resulting js assets. This resulted roughly in a 70% reduction in file size. Change-Id: I562f4310ce638bfa994666f043f33fcbe78a471e Signed-off-by: Bob Gallagher --- diff --git a/skyquake/scripts/build.sh b/skyquake/scripts/build.sh index 044268d4c..9d9d63549 100755 --- a/skyquake/scripts/build.sh +++ b/skyquake/scripts/build.sh @@ -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'