Install tools
npm install
#! /bin/sh | |
uglifyjs -v -b -nm -ns -nc $1 > /tmp/ugly-diff-1 | |
uglifyjs -v -b -nm -ns -nc $2 > /tmp/ugly-diff-2 | |
diff /tmp/ugly-diff-1 /tmp/ugly-diff-2 | colordiff | less -R |
find . -type f -name "*.html.twig" | xargs perl -pi -e "s/>([^\s<{>].*?)</>{{ '\1'|trans }}</g" |