Skip to content

Instantly share code, notes, and snippets.

@hazcod
Last active May 13, 2019 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hazcod/172f96f071722c7585e6b4f4c2163f6b to your computer and use it in GitHub Desktop.
Save hazcod/172f96f071722c7585e6b4f4c2163f6b to your computer and use it in GitHub Desktop.
Remove mapping file references using (bsd) sed and find.
find css js -type f \( -iname '*.css' -o -iname '*.js' \) -exec sed -i '' -e 's/sourceMappingURL=[^ ]*\.map//g' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment