diff --git a/Gruntfile.js b/Gruntfile.js index 1b80ddd87e3f1..ad979656c36fd 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1147,7 +1147,7 @@ module.exports = function(grunt) { options: { patterns: [ { - match: new RegExp( '//# sourceMappingURL=.*\\s*' ), + match: new RegExp( '\/\/# sourceMappingURL=.*\\s*', 'g' ), replacement: '' } ] @@ -1160,6 +1160,14 @@ module.exports = function(grunt) { BUILD_DIR + 'wp-includes/js/underscore.js' ], dest: BUILD_DIR + 'wp-includes/js/' + }, + { + expand: true, + flatten: true, + src: [ + BUILD_DIR + 'wp-includes/js/dist/block-editor.js', + ], + dest: BUILD_DIR + 'wp-includes/js/dist/' } ] }