From: Kiran Kashalkar Date: Wed, 15 Mar 2017 17:44:50 +0000 (+0000) Subject: RIFT-15726: Support code minification in production environments X-Git-Tag: v2.0.0~34 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=df6a222256b914f0ecba9a20d26e5d6b7b2ff964;p=osm%2FUI.git RIFT-15726: Support code minification in production environments Signed-off-by: Kiran Kashalkar --- diff --git a/skyquake/plugins/about/scripts/build.sh b/skyquake/plugins/about/scripts/build.sh index 03db9bd74..3fd92536d 100755 --- a/skyquake/plugins/about/scripts/build.sh +++ b/skyquake/plugins/about/scripts/build.sh @@ -27,6 +27,6 @@ echo 'Fetching third-party node_modules for '$PLUGIN_NAME npm install echo 'Fetching third-party node_modules for '$PLUGIN_NAME'...done' echo 'Packaging '$PLUGIN_NAME' using webpack' -ui_plugin_cmake_build=true ./node_modules/.bin/webpack --progress --config webpack.production.config.js +ui_plugin_cmake_build=true ./node_modules/.bin/webpack --optimize-minimize --progress --config webpack.production.config.js echo 'Packaging '$PLUGIN_NAME' using webpack... done' echo 'Building plugin '$PLUGIN_NAME'... done' diff --git a/skyquake/plugins/accounts/scripts/build.sh b/skyquake/plugins/accounts/scripts/build.sh index 921cfebdf..f8dcff1c3 100755 --- a/skyquake/plugins/accounts/scripts/build.sh +++ b/skyquake/plugins/accounts/scripts/build.sh @@ -27,6 +27,6 @@ echo 'Fetching third-party node_modules for '$PLUGIN_NAME npm install echo 'Fetching third-party node_modules for '$PLUGIN_NAME'...done' echo 'Packaging '$PLUGIN_NAME' using webpack' -ui_plugin_cmake_build=true ./node_modules/.bin/webpack --progress --config webpack.production.config.js +ui_plugin_cmake_build=true ./node_modules/.bin/webpack --optimize-minimize --progress --config webpack.production.config.js echo 'Packaging '$PLUGIN_NAME' using webpack... done' echo 'Building plugin '$PLUGIN_NAME'... done' diff --git a/skyquake/plugins/composer/scripts/build.sh b/skyquake/plugins/composer/scripts/build.sh index eb17e4e35..ae23facfc 100755 --- a/skyquake/plugins/composer/scripts/build.sh +++ b/skyquake/plugins/composer/scripts/build.sh @@ -27,6 +27,6 @@ echo 'Fetching third-party node_modules for '$PLUGIN_NAME npm install echo 'Fetching third-party node_modules for '$PLUGIN_NAME'...done' echo 'Packaging '$PLUGIN_NAME' using webpack' -ui_plugin_cmake_build=true ./node_modules/.bin/webpack --progress --config webpack.production.config.js +ui_plugin_cmake_build=true ./node_modules/.bin/webpack --optimize-minimize --progress --config webpack.production.config.js echo 'Packaging '$PLUGIN_NAME' using webpack... done' echo 'Building plugin '$PLUGIN_NAME'... done' diff --git a/skyquake/plugins/config/scripts/build.sh b/skyquake/plugins/config/scripts/build.sh index 1758212e4..4a5f8c6e3 100755 --- a/skyquake/plugins/config/scripts/build.sh +++ b/skyquake/plugins/config/scripts/build.sh @@ -13,6 +13,6 @@ echo 'Fetching third-party node_modules for '$PLUGIN_NAME npm install echo 'Fetching third-party node_modules for '$PLUGIN_NAME'...done' echo 'Packaging '$PLUGIN_NAME' using webpack' -ui_plugin_cmake_build=true ./node_modules/.bin/webpack --progress --config webpack.production.config.js +ui_plugin_cmake_build=true ./node_modules/.bin/webpack --optimize-minimize --progress --config webpack.production.config.js echo 'Packaging '$PLUGIN_NAME' using webpack... done' echo 'Building plugin '$PLUGIN_NAME'... done' diff --git a/skyquake/plugins/debug/scripts/build.sh b/skyquake/plugins/debug/scripts/build.sh index 49bc9f086..7bac1bfe5 100755 --- a/skyquake/plugins/debug/scripts/build.sh +++ b/skyquake/plugins/debug/scripts/build.sh @@ -27,6 +27,6 @@ echo 'Fetching third-party node_modules for '$PLUGIN_NAME npm install echo 'Fetching third-party node_modules for '$PLUGIN_NAME'...done' echo 'Packaging '$PLUGIN_NAME' using webpack' -ui_plugin_cmake_build=true ./node_modules/.bin/webpack --progress --config webpack.production.config.js +ui_plugin_cmake_build=true ./node_modules/.bin/webpack --optimize-minimize --progress --config webpack.production.config.js echo 'Packaging '$PLUGIN_NAME' using webpack... done' echo 'Building plugin '$PLUGIN_NAME'... done' diff --git a/skyquake/plugins/goodbyeworld/scripts/build.sh b/skyquake/plugins/goodbyeworld/scripts/build.sh index 6dc7f5cc2..3298c2a9f 100755 --- a/skyquake/plugins/goodbyeworld/scripts/build.sh +++ b/skyquake/plugins/goodbyeworld/scripts/build.sh @@ -27,6 +27,6 @@ echo 'Fetching third-party node_modules for '$PLUGIN_NAME npm install echo 'Fetching third-party node_modules for '$PLUGIN_NAME'...done' echo 'Packaging '$PLUGIN_NAME' using webpack' -ui_plugin_cmake_build=true ./node_modules/.bin/webpack --progress --config webpack.production.config.js +ui_plugin_cmake_build=true ./node_modules/.bin/webpack --optimize-minimize --progress --config webpack.production.config.js echo 'Packaging '$PLUGIN_NAME' using webpack... done' echo 'Building plugin '$PLUGIN_NAME'... done' diff --git a/skyquake/plugins/helloworld/scripts/build.sh b/skyquake/plugins/helloworld/scripts/build.sh index 39913a3fd..aec9106cf 100755 --- a/skyquake/plugins/helloworld/scripts/build.sh +++ b/skyquake/plugins/helloworld/scripts/build.sh @@ -27,6 +27,6 @@ echo 'Fetching third-party node_modules for '$PLUGIN_NAME npm install echo 'Fetching third-party node_modules for '$PLUGIN_NAME'...done' echo 'Packaging '$PLUGIN_NAME' using webpack' -ui_plugin_cmake_build=true ./node_modules/.bin/webpack --progress --config webpack.production.config.js +ui_plugin_cmake_build=true ./node_modules/.bin/webpack --optimize-minimize --progress --config webpack.production.config.js echo 'Packaging '$PLUGIN_NAME' using webpack... done' echo 'Building plugin '$PLUGIN_NAME'... done' diff --git a/skyquake/plugins/launchpad/scripts/build.sh b/skyquake/plugins/launchpad/scripts/build.sh index 611fcc877..c59d28f1d 100755 --- a/skyquake/plugins/launchpad/scripts/build.sh +++ b/skyquake/plugins/launchpad/scripts/build.sh @@ -27,6 +27,6 @@ echo 'Fetching third-party node_modules for '$PLUGIN_NAME npm install echo 'Fetching third-party node_modules for '$PLUGIN_NAME'...done' echo 'Packaging '$PLUGIN_NAME' using webpack' -ui_plugin_cmake_build=true ./node_modules/.bin/webpack --progress --config webpack.production.config.js +ui_plugin_cmake_build=true ./node_modules/.bin/webpack --optimize-minimize --progress --config webpack.production.config.js echo 'Packaging '$PLUGIN_NAME' using webpack... done' echo 'Building plugin '$PLUGIN_NAME'... done' diff --git a/skyquake/plugins/logging/scripts/build.sh b/skyquake/plugins/logging/scripts/build.sh index 4b23c0129..569bc06cd 100755 --- a/skyquake/plugins/logging/scripts/build.sh +++ b/skyquake/plugins/logging/scripts/build.sh @@ -27,6 +27,6 @@ echo 'Fetching third-party node_modules for '$PLUGIN_NAME npm install echo 'Fetching third-party node_modules for '$PLUGIN_NAME'...done' echo 'Packaging '$PLUGIN_NAME' using webpack' -ui_plugin_cmake_build=true ./node_modules/.bin/webpack --progress --config webpack.production.config.js +ui_plugin_cmake_build=true ./node_modules/.bin/webpack --optimize-minimize --progress --config webpack.production.config.js echo 'Packaging '$PLUGIN_NAME' using webpack... done' echo 'Building plugin '$PLUGIN_NAME'... done'