From 313c2a1bc1495fc5b422243f77fdd928a9d37d15 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Mon, 23 Mar 2026 17:17:56 -0400 Subject: [PATCH] Avoid copying CSS files twice. --- Gruntfile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index c925a4f567227..67258d14a42e0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -668,7 +668,12 @@ module.exports = function(grunt) { files: [ { expand: true, cwd: 'gutenberg/build/styles', - src: [ '**/*', '!**/*.map' ], + src: [ + '**/*', + '!**/*.map', + // Per-block CSS is copied to wp-includes/blocks/ by tools/gutenberg/copy.js. + '!block-library/*/**', + ], dest: WORKING_DIR + 'wp-includes/css/dist/', } ], },