From 11340537340c8f2beac408420d31ba51d1e796c0 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Sat, 6 Apr 2019 14:59:46 +0200 Subject: [PATCH 1/2] [Webpack encore] Enable cache only in prod --- .../1.0/config/packages/prod/webpack_encore.yaml | 4 ++++ .../1.0/config/packages/webpack_encore.yaml | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 symfony/webpack-encore-bundle/1.0/config/packages/prod/webpack_encore.yaml diff --git a/symfony/webpack-encore-bundle/1.0/config/packages/prod/webpack_encore.yaml b/symfony/webpack-encore-bundle/1.0/config/packages/prod/webpack_encore.yaml new file mode 100644 index 00000000..1681d470 --- /dev/null +++ b/symfony/webpack-encore-bundle/1.0/config/packages/prod/webpack_encore.yaml @@ -0,0 +1,4 @@ +webpack_encore: + # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) + # Available in version 1.2 + #cache: true 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 05d8bff4..c1c19d37 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 @@ -2,7 +2,3 @@ webpack_encore: # The path where Encore is building the assets. # This should match Encore.setOutputPath() in webpack.config.js. output_path: '%kernel.project_dir%/public/build' - - # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) - # Available in version 1.2 - #cache: '%kernel.debug%' From 11c60ac853d8d20d0865708c8cc44c327f22cc3e Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Wed, 10 Apr 2019 17:17:02 +0200 Subject: [PATCH 2/2] minor --- .../1.0/config/packages/prod/webpack_encore.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symfony/webpack-encore-bundle/1.0/config/packages/prod/webpack_encore.yaml b/symfony/webpack-encore-bundle/1.0/config/packages/prod/webpack_encore.yaml index 1681d470..d0b3ba81 100644 --- a/symfony/webpack-encore-bundle/1.0/config/packages/prod/webpack_encore.yaml +++ b/symfony/webpack-encore-bundle/1.0/config/packages/prod/webpack_encore.yaml @@ -1,4 +1,4 @@ -webpack_encore: +#webpack_encore: # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) # Available in version 1.2 #cache: true