WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 7 months ago

#45614 new enhancement

Build Tools: grunt build fails if mu-plugins and uploads directories has many files

Reported by: Nikschavan Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0
Component: Build/Test Tools Keywords: reporter-feedback
Focuses: Cc:

Description

These directories can be included in the --minimal-copy grunt option to skip these from build process.

Related #38423

Attachments (1)

45614.1.diff (853 bytes) - added by Nikschavan 3 years ago.
Excludes directories from wp-content/ from build process.

Download all attachments as: .zip

Change History (2)

@Nikschavan
3 years ago

Excludes directories from wp-content/ from build process.

#1 @isabel_brison
7 months ago

  • Keywords reporter-feedback added

Hi @Nikschavan ! The mu-plugins and uploads directories, as well as the other directories from wp-content referenced in your patch, aren't included in the list of built files. The full list, with the minimal-copy option enabled, is:

  '*.php',
  '*.txt',
  '*.html',
  'wp-includes/**',
  'wp-admin/**',
  'wp-content/index.php',
  'wp-content/themes/index.php',
  'wp-content/themes/twenty*/**',
  'wp-content/plugins/index.php',
  'wp-content/plugins/hello.php',
  'wp-content/plugins/akismet/**',
  '!wp-content/themes/twenty*/node_modules/**',
  '!wp-includes/assets/**',
  '!js/**',
  '!.{svn,git}',
  '!wp-includes/version.php',
  '!**/*.map',
  '!index.php',
  '!wp-admin/index.php',
  '!_index.php',
  '!wp-admin/_index.php',
  '!wp-content/plugins/**',
  '!wp-content/themes/!(twenty*)/**'

Could you provide some more details about the build failure, any error messages, etc.?

Note: See TracTickets for help on using tickets.