Build: Remove css/dist in grunt clean command.

Modify the `grunt clean:css` command to include the folder `wp-includes/css/dist` to ensure legacy files do not remain if the built files are removed/relocated.

Props desrosj, netweb.
Fixes #53719.



git-svn-id: https://develop.svn.wordpress.org/trunk@51689 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson 2021-08-30 04:34:19 +00:00
parent 485c6b83db
commit bb3075d642

View File

@ -115,6 +115,7 @@ module.exports = function(grunt) {
WORKING_DIR + 'wp-admin/css/*-rtl*.css', WORKING_DIR + 'wp-admin/css/*-rtl*.css',
WORKING_DIR + 'wp-includes/css/*.min.css', WORKING_DIR + 'wp-includes/css/*.min.css',
WORKING_DIR + 'wp-includes/css/*-rtl*.css', WORKING_DIR + 'wp-includes/css/*-rtl*.css',
WORKING_DIR + 'wp-includes/css/dist/',
WORKING_DIR + 'wp-admin/css/colors/**/*.css' WORKING_DIR + 'wp-admin/css/colors/**/*.css'
], ],
js: [ js: [