diff --git a/Gruntfile.js b/Gruntfile.js index 355a8989db3db..d196c51152658 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -612,6 +612,17 @@ module.exports = function(grunt) { dest: WORKING_DIR + 'wp-includes/build/', } ], }, + 'gutenberg-js': { + files: [ { + expand: true, + cwd: 'gutenberg/build', + src: [ + 'pages/**/*.js', + 'routes/**/*.js', + ], + dest: WORKING_DIR + 'wp-includes/build/', + } ], + }, 'gutenberg-modules': { files: [ { expand: true, @@ -2041,6 +2052,7 @@ module.exports = function(grunt) { grunt.registerTask( 'build:gutenberg', [ 'copy:gutenberg-php', + 'copy:gutenberg-js', 'gutenberg:copy', 'copy:gutenberg-modules', 'copy:gutenberg-styles',