From d43e6a631407ae32a0cf44f1e6dd8b2db30726f0 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Wed, 1 Sep 2021 03:59:30 +0000 Subject: [PATCH] Build: Clean `css/dist` as part of the webpack build step. Move the cleaning of the `wp-includes/css/dist` folder from `clean:css` to `clean:webpack-assets` to avoid an order of operations issue in which the files were built shortly before been deleted later in the build process. Follow up to [51689]. Props netweb, ramonopoly, peterwilsoncc. Fixes #53719. git-svn-id: https://develop.svn.wordpress.org/trunk@51713 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index d273eac5e6..369079dc1d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -115,7 +115,6 @@ module.exports = function(grunt) { WORKING_DIR + 'wp-admin/css/*-rtl*.css', WORKING_DIR + 'wp-includes/css/*.min.css', WORKING_DIR + 'wp-includes/css/*-rtl*.css', - WORKING_DIR + 'wp-includes/css/dist/', WORKING_DIR + 'wp-admin/css/colors/**/*.css' ], js: [ @@ -124,6 +123,7 @@ module.exports = function(grunt) { ], 'webpack-assets': [ WORKING_DIR + 'wp-includes/assets/*', + WORKING_DIR + 'wp-includes/css/dist/', '!' + WORKING_DIR + 'wp-includes/assets/script-loader-packages.php' ], dynamic: {