From 98e3a374eda58ace6c9b0f2c3bd77fcda6057024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 4 Mar 2022 19:32:04 +0100 Subject: [PATCH] Updated symfony/webpack-encore-bundle recipe --- config/packages/prod/webpack_encore.yaml | 4 ---- config/packages/test/webpack_encore.yaml | 2 -- config/packages/webpack_encore.yaml | 12 ++++++++++-- symfony.lock | 25 +++++++++++------------- 4 files changed, 21 insertions(+), 22 deletions(-) delete mode 100644 config/packages/prod/webpack_encore.yaml delete mode 100644 config/packages/test/webpack_encore.yaml diff --git a/config/packages/prod/webpack_encore.yaml b/config/packages/prod/webpack_encore.yaml deleted file mode 100644 index 42969165..00000000 --- a/config/packages/prod/webpack_encore.yaml +++ /dev/null @@ -1,4 +0,0 @@ -webpack_encore: - # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) - # Available in version 1.2 - cache: true diff --git a/config/packages/test/webpack_encore.yaml b/config/packages/test/webpack_encore.yaml deleted file mode 100644 index 02a76515..00000000 --- a/config/packages/test/webpack_encore.yaml +++ /dev/null @@ -1,2 +0,0 @@ -#webpack_encore: -# strict_mode: false diff --git a/config/packages/webpack_encore.yaml b/config/packages/webpack_encore.yaml index c124e4ac..0573cd1d 100644 --- a/config/packages/webpack_encore.yaml +++ b/config/packages/webpack_encore.yaml @@ -21,7 +21,7 @@ webpack_encore: preload: true # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data - # strict_mode: false + strict_mode: true # If you have multiple builds: # builds: @@ -32,4 +32,12 @@ webpack_encore: # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) # Put in config/packages/prod/webpack_encore.yaml - # cache: true + cache: false + +when@prod: + webpack_encore: + cache: true + +when@test: + webpack_encore: + strict_mode: true \ No newline at end of file diff --git a/symfony.lock b/symfony.lock index 612e80bc..36b17172 100644 --- a/symfony.lock +++ b/symfony.lock @@ -784,25 +784,22 @@ ] }, "symfony/webpack-encore-bundle": { - "version": "1.9", + "version": "1.14", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "1.9", - "ref": "0f274572ea315eb3b5884518a50ca43f211b4534" + "version": "1.10", + "ref": "2858aeed7e1d81a45365c049eb533cc8827e380b" }, "files": [ - "./assets/app.js", - "./assets/bootstrap.js", - "./assets/controllers.json", - "./assets/controllers/hello_controller.js", - "./assets/styles/app.css", - "./config/packages/assets.yaml", - "./config/packages/prod/webpack_encore.yaml", - "./config/packages/test/webpack_encore.yaml", - "./config/packages/webpack_encore.yaml", - "./package.json", - "./webpack.config.js" + "assets/app.js", + "assets/bootstrap.js", + "assets/controllers.json", + "assets/controllers/hello_controller.js", + "assets/styles/app.css", + "config/packages/webpack_encore.yaml", + "package.json", + "webpack.config.js" ] }, "symfony/yaml": {