Skip to content

Commit

Permalink
fix: ensure check_yarn_integrity is always false
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 10, 2020
1 parent 6ce1bea commit b807cc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions variants/frontend-base/template.rb
Expand Up @@ -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
Expand Down

0 comments on commit b807cc0

Please sign in to comment.