Minimize Template Adjustments

The minification only occur when the debug mode is disabled and minification is enabled.