Commit 52f2d795 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Raise error if webpack errored during compilation

parent 66649862
...@@ -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