I sometimes want to diff the output of JS builds. The files are minified, so I first prettify them. The problem though is that sometimes small changes in the input yield hundreds of trivial changes in the output file, due to minification process assigning different variable names all over the output file.
I would like a diff tool that can ignore those small changes (that are typically 1 or 2 character diffs) and only show bigger diffs.
Is there a tool like that, or can Beyond Compare be configured like that?
A typical diff I'd like to ignore looks like this:
You can use replacements for this.
Go to Session->Session Settings->Replacements:
After this the difference is unimportant:
You may also define a replacement easier via the context menu (right mouse click)
The official support page contains a possibility with file formats: https://www.scootersoftware.com/support.php?zz=kb_unimportantv3