Skip to content

Commit 12ccb2d

Browse files
committed
do not optimize twig templates in dev environment
1 parent f273541 commit 12ccb2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎config/twig.config.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'auto_reload' => $_ENV['APP_ENV'] === 'dev',
2121
'strict_variables' => true,
2222
'autoescape' => 'html',
23-
'optimizations' => -1,
23+
'optimizations' => ($_ENV['APP_ENV'] === 'dev') ? 0 : -1,
2424
],
2525

2626
/**

0 commit comments

Comments
 (0)