Skip to content

Commit 5e8ec8f

Browse files
Build: Exclude non-minified VIPS files from grunt module copy.
Add an exclusion for non-minified VIPS files to match the existing filter in `tools/gutenberg/copy.js`. This prevents ~16 MB `worker.js` from being copied alongside the nearly identically-sized `worker.min.js`. Props adamsilverstein, zieladam, desrosj. Fixes #64884. git-svn-id: https://develop.svn.wordpress.org/trunk@62055 602fd350-edb4-49c9-b593-d223f7449a82
1 parent aaf38ca commit 5e8ec8f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Gruntfile.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,13 @@ module.exports = function(grunt) {
640640
files: [ {
641641
expand: true,
642642
cwd: 'gutenberg/build/modules',
643-
src: [ '**/*', '!**/*.map' ],
643+
src: [
644+
'**/*',
645+
'!**/*.map',
646+
// Skip non-minified VIPS files — they are ~16MB of inlined WASM
647+
// with no debugging value over the minified versions.
648+
'!vips/!(*.min).js',
649+
],
644650
dest: WORKING_DIR + 'wp-includes/js/dist/script-modules/',
645651
} ],
646652
},

0 commit comments

Comments
 (0)