Guest User

Untitled

a guest
Jul 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Launch inside a react project after building the production build with webpack
  4. # Requires `jq`.
  5.  
  6. diff \
  7. <(find src -type f \( -name '*.js' -o -name '*.jsx' -o -name '*.scss' \) | sort) \
  8. <(cat dist/**/*.map | jq --raw-output '.sources | join("\n")' \
  9. | grep -v '\.\./' | grep -E '\.(js|jsx|scss)$' \
  10. | sed "s#^webpack:///./##" | sort | uniq) \
  11. | grep '< ' | sed "s#^< ##" | grep -v 'spec'
Add Comment
Please, Sign In to add comment