diff --git a/variants/frontend-base/template.rb b/variants/frontend-base/template.rb index 7a4b2b20..88d52aa7 100644 --- a/variants/frontend-base/template.rb +++ b/variants/frontend-base/template.rb @@ -19,6 +19,13 @@ gsub_file "config/webpacker.yml", "source_path: app/javascript", "source_path: app/frontend", force: true +# Yarn's integrity check command is quite buggy, to the point that yarn v2 removed it +# +# The integrity check option itself has been removed in webpacker v5.1 but we +# currently pull in v4, so we just set it to false to be safe +# +gsub_file "config/webpacker.yml", "check_yarn_integrity: true", "check_yarn_integrity: false", force: true + # We want webpacker to generate a separate CSS file in all environments because # # 1. It makes things look more "normal" in browser dev tools