From a67b087a2044f2663e9563692775b54dcc7d82af Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 9 Mar 2023 00:03:36 +0000 Subject: [PATCH] Build/Test Tools: Fix cleaning of old CSS files in `wp-includes/blocks/*`. Have to be cleaned earlier, before Webpack runs. Not together with the rest of the CSS files. Props: ironprogrammer, petitphp, hellofromTonya, azaozz. Fixes: #57891. git-svn-id: https://develop.svn.wordpress.org/trunk@55494 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index e031fd6d45..2a6d2b9fba 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -40,7 +40,6 @@ module.exports = function(grunt) { 'wp-includes/css/*.min.css', 'wp-includes/css/*-rtl*.css', 'wp-admin/css/colors/**/*.css', - 'wp-includes/blocks/**/*.css', ], // All built js files, in /src or /build. @@ -55,6 +54,7 @@ module.exports = function(grunt) { webpackFiles = [ 'wp-includes/assets/*', 'wp-includes/css/dist', + 'wp-includes/blocks/**/*.css', '!wp-includes/assets/script-loader-packages.min.php', ],