RIFT-15726: Support code minification in production environments 02/1302/1
authorKiran Kashalkar <kiran.kashalkar@riftio.com>
Wed, 15 Mar 2017 17:44:50 +0000 (17:44 +0000)
committerKiran Kashalkar <kiran.kashalkar@riftio.com>
Wed, 15 Mar 2017 17:45:03 +0000 (17:45 +0000)
Signed-off-by: Kiran Kashalkar <kiran.kashalkar@riftio.com>
skyquake/plugins/about/scripts/build.sh
skyquake/plugins/accounts/scripts/build.sh
skyquake/plugins/composer/scripts/build.sh
skyquake/plugins/config/scripts/build.sh
skyquake/plugins/debug/scripts/build.sh
skyquake/plugins/goodbyeworld/scripts/build.sh
skyquake/plugins/helloworld/scripts/build.sh
skyquake/plugins/launchpad/scripts/build.sh
skyquake/plugins/logging/scripts/build.sh

index 03db9bd..3fd9253 100755 (executable)
@@ -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'
index 921cfeb..f8dcff1 100755 (executable)
@@ -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'
index eb17e4e..ae23fac 100755 (executable)
@@ -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'
index 1758212..4a5f8c6 100755 (executable)
@@ -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'
index 49bc9f0..7bac1bf 100755 (executable)
@@ -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'
index 6dc7f5c..3298c2a 100755 (executable)
@@ -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'
index 39913a3..aec9106 100755 (executable)
@@ -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'
index 611fcc8..c59d28f 100755 (executable)
@@ -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'
index 4b23c01..569bc06 100755 (executable)
@@ -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'