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
This commit is contained in:
Peter Wilson
2021-09-01 03:59:30 +00:00
parent 1c9ac8c6c1
commit d43e6a6314

View File

@@ -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: {