From 43857ce985cd3f93868de191d847df1037fd1030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Tue, 24 Mar 2020 11:49:23 +0100 Subject: [PATCH] Only do preloading of assets in production mode. --- config/packages/prod/webpack_encore.yaml | 7 +++++-- config/packages/webpack_encore.yaml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/packages/prod/webpack_encore.yaml b/config/packages/prod/webpack_encore.yaml index d0b3ba81..2b75ef57 100644 --- a/config/packages/prod/webpack_encore.yaml +++ b/config/packages/prod/webpack_encore.yaml @@ -1,4 +1,7 @@ -#webpack_encore: +webpack_encore: # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) # Available in version 1.2 - #cache: true + cache: true + + # Preload in production + preload: false \ No newline at end of file diff --git a/config/packages/webpack_encore.yaml b/config/packages/webpack_encore.yaml index 8eb88a34..1b405d71 100644 --- a/config/packages/webpack_encore.yaml +++ b/config/packages/webpack_encore.yaml @@ -8,7 +8,7 @@ webpack_encore: # crossorigin: 'anonymous' # 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 # strict_mode: false