From 62e424a6cc943ea69a92e4200b047f6dc2b35301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Garn=C3=A6s?= Date: Tue, 5 Dec 2023 21:57:42 +0100 Subject: [PATCH] Store unique version information for React builds --- Taskfile.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index fa2374c..544d2c3 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -99,6 +99,13 @@ tasks: - src/**/*.scss cmds: - yarn build + env: + # Create an updated version.json file for our build. + # This file is parsed by Drupal and the version added as query parameter + # for JavaScript assets. An updated value will help bust caches. + VERSION_FILE_NAME: "dapple" + VERSION_FILE_VERSION: + sh: 'echo "0.0.0-$(date +%s)"' react:dev: dir: react