From 0be7b31f50d58683ed7401174ede5dc7f671a932 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Thu, 20 Aug 2026 16:21:10 +0200 Subject: [PATCH] Ignore node_modules and commont paths for built files. --- Gruntfile.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index ab40643d05a80..2e09a71dd0456 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1069,6 +1069,17 @@ module.exports = function(grunt) { '**/*.js', '!**/*.min.js' ], + // Prevent traversal into these directories during glob expansion. + // This is much faster than using negation patterns alone. + ignore: [ + '**/build/**', + '**/dist/**', + '**/gutenberg/**', + '**/node_modules/**', + '**/packages/**', + '**/test/**', + '**/vendor/**' + ], /* * Limit JSHint's run to a single specified plugin directory: *