From 11340537340c8f2beac408420d31ba51d1e796c0 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Sat, 6 Apr 2019 14:59:46 +0200 Subject: [PATCH] [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%'