diff --git a/scripts/install b/scripts/install index f07f112..25a7e17 100755 --- a/scripts/install +++ b/scripts/install @@ -126,7 +126,8 @@ pushd "$final_path" ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1 ynh_script_progression --message="Building Yarn dependencies... This can be very long, be patient !" --weight=30 - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run build + #https://geeklearning.io/angular-aot-webpack-memory-trick/ + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_OPTIONS=--max-old-space-size=4096 yarn run build ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1 popd diff --git a/scripts/upgrade b/scripts/upgrade index 3009b88..a0480c4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,7 +118,8 @@ then ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1 ynh_script_progression --message="Building Yarn dependencies... This can be very long, be patient !" --weight=18 - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run build + #https://geeklearning.io/angular-aot-webpack-memory-trick/ + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_OPTIONS=--max-old-space-size=4096 yarn run build ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1 popd