summaryrefslogtreecommitdiffstatshomepage
path: root/tools/local-env/scripts/utils.js
diff options
context:
space:
mode:
authorJb Audras <audrasjb@git.wordpress.org>2025-06-26 19:22:53 +0000
committerJb Audras <audrasjb@git.wordpress.org>2025-06-26 19:22:53 +0000
commit27233a0a3b00cc5d683080722711bca15970fe8c (patch)
treeb46654674809a2326010bbe7f7a6e44641f2ebfd /tools/local-env/scripts/utils.js
parent909d64c00ba92ccf59b7437e757609493f50390d (diff)
downloadwordpress-27233a0a3b00cc5d683080722711bca15970fe8c.tar.gz
wordpress-27233a0a3b00cc5d683080722711bca15970fe8c.zip
Editor: Add cache-busting for block styles on development mode.
This changeset introduces a development mode for block editor styles. When `SCRIPT_DEBUG` is enabled, block editor styles now use the file modification time as their version, ensuring cache busting during development. This matches the behavior that already exists for block scripts. Previously, block editor styles only used the version from `block.json`, which doesn't change during development, causing styles to be cached even after changes. Props helgatheviking, abcd95, gziolo, whaze, audrasjb, sandeepdahiya, rollybueno. Fixes #63254. git-svn-id: https://develop.svn.wordpress.org/trunk@60355 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tools/local-env/scripts/utils.js')
0 files changed, 0 insertions, 0 deletions