Simplify assets configuration.

This commit is contained in:
David Molineus
2015-01-08 12:44:42 +01:00
parent 977ff01ced
commit 135bd9f7c6
3 changed files with 45 additions and 48 deletions

View File

@@ -35,7 +35,10 @@ class ContaoAssets implements Assets
break;
case static::TYPE_FILE:
$script .= '|static';
if (!\Config::get('debugMode')) {
$script .= '|static';
}
// no break
default:
@@ -54,7 +57,9 @@ class ContaoAssets implements Assets
break;
case static::TYPE_FILE:
$stylesheet .= '|all|static';
if (!\Config::get('debugMode')) {
$stylesheet .= '|all|static';
}
// no break
default: