Commit 5704c69e authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'vs-raise-error-webpack' into 'master'

Raise error if webpack errored during compilation

See merge request gitlab-org/gitlab!48802
parents e733d1f4 52f2d795
...@@ -81,7 +81,10 @@ namespace :gitlab do ...@@ -81,7 +81,10 @@ namespace :gitlab do
if head_assets_md5 != master_assets_md5 || !public_assets_webpack_dir_exists if head_assets_md5 != master_assets_md5 || !public_assets_webpack_dir_exists
FileUtils.rm_r(Tasks::Gitlab::Assets::PUBLIC_ASSETS_WEBPACK_DIR) if public_assets_webpack_dir_exists FileUtils.rm_r(Tasks::Gitlab::Assets::PUBLIC_ASSETS_WEBPACK_DIR) if public_assets_webpack_dir_exists
system('yarn webpack')
unless system('yarn webpack')
abort 'Error: Unable to compile webpack production bundle.'.color(:red)
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment