From e06589bbf8e1a5e422ce516eea131b08a63d2093 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Tue, 3 Aug 2021 15:37:24 -0400 Subject: [PATCH] Suggesting attribute for Turbo users (#943) --- .../1.9/config/packages/webpack_encore.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/symfony/webpack-encore-bundle/1.9/config/packages/webpack_encore.yaml b/symfony/webpack-encore-bundle/1.9/config/packages/webpack_encore.yaml index 90f1a1db..dee527a0 100644 --- a/symfony/webpack-encore-bundle/1.9/config/packages/webpack_encore.yaml +++ b/symfony/webpack-encore-bundle/1.9/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.hotwire.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'