Skip to content

Commit

Permalink
Store unique version information for React builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperg committed Dec 5, 2023
1 parent 03de7d9 commit 4140405
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4140405

Please sign in to comment.