Updated symfony/webpack-encore-bundle recipe

This commit is contained in:
Jan Böhmer 2022-03-04 19:32:04 +01:00
parent 89e1492132
commit 98e3a374ed
4 changed files with 21 additions and 22 deletions

View file

@ -21,7 +21,7 @@ webpack_encore:
preload: true
# Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
# strict_mode: false
strict_mode: true
# If you have multiple builds:
# builds:
@ -32,4 +32,12 @@ webpack_encore:
# Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
# Put in config/packages/prod/webpack_encore.yaml
# cache: true
cache: false
when@prod:
webpack_encore:
cache: true
when@test:
webpack_encore:
strict_mode: true