Commit 27233a0
committed
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-d223f7449a821 parent 909d64c commit 27233a0
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
332 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
| |||
0 commit comments