From c73f3161dd99edd7e4e3bf4df6c43bf2e1b5e32a Mon Sep 17 00:00:00 2001 From: tracer Date: Mon, 11 Apr 2022 17:53:00 +0200 Subject: [PATCH] refactored --- config/packages/webpack_encore.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config/packages/webpack_encore.yaml b/config/packages/webpack_encore.yaml index 90f1a1d..46834f0 100644 --- a/config/packages/webpack_encore.yaml +++ b/config/packages/webpack_encore.yaml @@ -7,7 +7,12 @@ webpack_encore: # Set attributes that will be rendered on all script and link tags script_attributes: defer: true + # Uncomment (also under link_attributes) if using Turbo Drive + # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change + # 'data-turbo-track': reload # link_attributes: + # Uncomment if using Turbo Drive + # 'data-turbo-track': reload # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials') # crossorigin: 'anonymous' @@ -28,3 +33,17 @@ webpack_encore: # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) # Put in config/packages/prod/webpack_encore.yaml # cache: true + +framework: + assets: + json_manifest_path: '%kernel.project_dir%/public/build/manifest.json' + +#when@prod: +# webpack_encore: +# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) +# # Available in version 1.2 +# cache: true + +#when@test: +# webpack_encore: +# strict_mode: false