Make WordPress Core

Changeset 62103


Ignore:
Timestamp:
03/24/2026 02:03:32 PM (6 months ago)
Author:
desrosj
Message:

Build/Test Tools: Only copy block library-related CSS to a single location.

Since [61438], all CSS files for the block library are being copied twice into two separate locations: wp-includes/blocks/BLOCKNAME/ (the previous location) and wp-includes/css/dist/block-library/BLOCKNAME/.

Since the copies added to the css/dist directory are not actually being used and moving the files was the original intention in [61438], this adds an exclusion rule to the grunt copy:gutenberg-styles task to allow the tools/gutenberg/copy.js script to handle these files.

Props jorbin, youknowriad.
See #64933.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r62081 r62103  
    669669                                        expand: true,
    670670                                        cwd: 'gutenberg/build/styles',
    671                                         src: [ '**/*', '!**/*.map' ],
     671                                        src: [
     672                                                '**/*',
     673                                                '!**/*.map',
     674                                                // Per-block CSS is copied to wp-includes/blocks/ by tools/gutenberg/copy.js.
     675                                                '!block-library/*/**',
     676                                        ],
    672677                                        dest: WORKING_DIR + 'wp-includes/css/dist/',
    673678                                } ],
Note: See TracChangeset for help on using the changeset viewer.