Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Launch inside a react project after building the production build with webpack
- # Requires `jq`.
- diff \
- <(find src -type f \( -name '*.js' -o -name '*.jsx' -o -name '*.scss' \) | sort) \
- <(cat dist/**/*.map | jq --raw-output '.sources | join("\n")' \
- | grep -v '\.\./' | grep -E '\.(js|jsx|scss)$' \
- | sed "s#^webpack:///./##" | sort | uniq) \
- | grep '< ' | sed "s#^< ##" | grep -v 'spec'
Add Comment
Please, Sign In to add comment