From d2e3a1f1a0a7fad7c79f5ffd35eec09b7926c47f Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 16 May 2019 02:24:58 +0000 Subject: [PATCH] Build tools: fix generating `*-rtl.css` files in `wp-includes/css` after `grunt --dev` was used. Fixes #47078. git-svn-id: https://develop.svn.wordpress.org/trunk@45317 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 2397b11fa4..79305d849a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -501,6 +501,14 @@ module.exports = function(grunt) { 'wp-admin/css/*.css', 'wp-includes/css/*.css', + // Exclude minified and already processed files, and files from external packages. + // These are present when running `grunt build` after `grunt --dev`. + '!wp-admin/css/*-rtl.css', + '!wp-includes/css/*-rtl.css', + '!wp-admin/css/*.min.css', + '!wp-includes/css/*.min.css', + '!wp-includes/css/dist', + // Exceptions '!wp-includes/css/dashicons.css', '!wp-includes/css/wp-embed-template.css',