From 54f537e31a6eb40ab03d820e07f4f57edbd0e496 Mon Sep 17 00:00:00 2001 From: Pierre du Plessis Date: Wed, 22 May 2019 13:40:26 +0200 Subject: [PATCH 1/2] [WebpackEncoreBundle] Don't use kernel.debug for the cache parameter --- .../1.0/config/packages/webpack_encore.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symfony/webpack-encore-bundle/1.0/config/packages/webpack_encore.yaml b/symfony/webpack-encore-bundle/1.0/config/packages/webpack_encore.yaml index 729f59ea..a25e86f2 100644 --- a/symfony/webpack-encore-bundle/1.0/config/packages/webpack_encore.yaml +++ b/symfony/webpack-encore-bundle/1.0/config/packages/webpack_encore.yaml @@ -10,4 +10,4 @@ webpack_encore: # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) # Available in version 1.2 - #cache: '%kernel.debug%' + #cache: 'false' From 495abe23fb1a73f8ffd3de949f0c03cfb017ca7e Mon Sep 17 00:00:00 2001 From: Pierre du Plessis Date: Fri, 24 May 2019 10:08:00 +0200 Subject: [PATCH 2/2] Add note to enable caching in prod --- .../1.0/config/packages/webpack_encore.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/symfony/webpack-encore-bundle/1.0/config/packages/webpack_encore.yaml b/symfony/webpack-encore-bundle/1.0/config/packages/webpack_encore.yaml index a25e86f2..1ad206b7 100644 --- a/symfony/webpack-encore-bundle/1.0/config/packages/webpack_encore.yaml +++ b/symfony/webpack-encore-bundle/1.0/config/packages/webpack_encore.yaml @@ -8,6 +8,7 @@ webpack_encore: # if using Encore.enableIntegrityHashes() specify the crossorigin attribute value (default: false, or use 'anonymous' or 'use-credentials') # crossorigin: 'anonymous' - # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) + # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes). + # To enable caching for the production environment, creating a webpack_encore.yaml in the config/packages/prod directory with this value set to true # Available in version 1.2 #cache: 'false'