Only do preloading of assets in production mode.

This commit is contained in:
Jan Böhmer 2020-03-24 11:49:23 +01:00
parent 562db6da06
commit 43857ce985
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,7 @@
#webpack_encore: webpack_encore:
# Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
# Available in version 1.2 # Available in version 1.2
#cache: true cache: true
# Preload in production
preload: false

View file

@ -8,7 +8,7 @@ webpack_encore:
# crossorigin: 'anonymous' # crossorigin: 'anonymous'
# preload all rendered script and link tags automatically via the http2 Link header # preload all rendered script and link tags automatically via the http2 Link header
preload: true #preload: false
# Throw an exception if the entrypoints.json file is missing or an entry is missing from the data # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
# strict_mode: false # strict_mode: false