Skip to content

Commit 7f4041b

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@62103 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5875321 commit 7f4041b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Gruntfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,12 @@ module.exports = function(grunt) {
668668
files: [ {
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
} ],
674679
},

0 commit comments

Comments
 (0)