Skip to content

Commit

Permalink
Replace sourcemaps in built block-editor file.
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Jun 27, 2023
1 parent 2d10a93 commit 21fefa0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ module.exports = function(grunt) {
options: {
patterns: [
{
match: new RegExp( '//# sourceMappingURL=.*\\s*' ),
match: new RegExp( '\/\/# sourceMappingURL=.*\\s*', 'g' ),
replacement: ''
}
]
Expand All @@ -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/'
}
]
}
Expand Down

0 comments on commit 21fefa0

Please sign in to comment.