diff --git a/lib/tasks/gitlab/assets.rake b/lib/tasks/gitlab/assets.rake index f6bb94fa6512cedce90e796aea78c3b325ecde04..89b369194559d1102fa4ae5f7d940a33325e4646 100644 --- a/lib/tasks/gitlab/assets.rake +++ b/lib/tasks/gitlab/assets.rake @@ -127,6 +127,8 @@ namespace :gitlab do log_path_message += "\nYou can inspect the webpack full log here: #{ENV['CI_JOB_URL']}/artifacts/file/#{log_path}" if ENV['CI_JOB_URL'] end + ENV['NODE_OPTIONS'] = '--max-old-space-size=16384' if ENV['GITLAB_LARGE_RUNNER_OPTIONAL'] == "saas-linux-large-amd64" + unless system(cmd) puts Rainbow('Error: Unable to compile webpack production bundle.').red