(css,js) Disable dynamic theme when not debugging

This commit is contained in:
Francis Lachapelle
2016-09-20 14:09:19 -04:00
parent 2c4b11230c
commit b985d0770d
3 changed files with 38 additions and 1 deletions
@@ -222,10 +222,15 @@
});
if (!DebugEnabled) {
// Disable debug data
// Disable debugging information
$logProvider.debugEnabled(false);
$compileProvider.debugInfoEnabled(false);
// Disable warnings
$mdAriaProvider.disableWarnings();
// Disable theme generation but keep definition in config (required by mdColors)
$mdThemingProvider.generateThemesOnDemand(true);
// Disable theming completely
//$mdThemingProvider.disableTheming();
}
$httpProvider.interceptors.push('AuthInterceptor');