From 084b4a8cc310b3bd97341416a69242b2c7e3d8dd Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sat, 14 Jul 2018 22:57:20 +0200 Subject: [PATCH] Formatter: Tweak minifier setup See discussion in PR #1457. --- framework/core/src/Formatter/Formatter.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/core/src/Formatter/Formatter.php b/framework/core/src/Formatter/Formatter.php index 4cfc250fd..a7ce2be1e 100644 --- a/framework/core/src/Formatter/Formatter.php +++ b/framework/core/src/Formatter/Formatter.php @@ -114,9 +114,8 @@ class Formatter $configurator->enableJavaScript(); $configurator->javascript->exportMethods = ['preview']; - $minifier = $configurator->javascript->setMinifier('FirstAvailable'); - $minifier->add('MatthiasMullieMinify'); - $minifier->add('Noop'); + $configurator->javascript->setMinifier('MatthiasMullieMinify') + ->keepGoing = true; $configurator->Escaper; $configurator->Autoemail;