Simplify minifier

fixes #1744