Skip to content

Commit

Permalink
Rename sourcemap files when renaming mjs to js
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Apr 29, 2022
1 parent 949d03d commit 800a6ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ module.exports = function (grunt) {
'for mjs in wp-includes/js/workbox*/*.mjs; do ' +
'sed "s/\\.mjs/.js/g" "$mjs" > "${mjs%mjs}js";' +
'rm $mjs;' +
'if [ -e $mjs.map ]; then mv $mjs.map "${mjs%mjs}js.map"; fi;' +
'done;',
},
create_build_zip: {
Expand Down

0 comments on commit 800a6ec

Please sign in to comment.