Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #548 from hawkular/turn-off-debug-info
Browse files Browse the repository at this point in the history
Reduce the size of the angular generated DOM and increase runtime per…
  • Loading branch information
mtho11 committed Oct 9, 2015
2 parents 82cb731 + a9562d3 commit 0f59ddc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions console/src/main/scripts/plugins/metrics/ts/metricsPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ module HawkularMetrics {
'hawkular.services', 'ui.bootstrap', 'topbar', 'patternfly.select', 'angular-momentjs', 'angular-md5', 'toastr',
'infinite-scroll', 'mgo-angular-wizard', 'truncate', '500tech.smart-truncate']);

_module.config(['$compileProvider', function ($compileProvider) {
//disable debug info
//NOTE: tools like Batarang and Protractor may not work properly with this debug info off
//However, this can be turned back on at runtime in the js console by typing: angular.reloadWithDebugInfo()
$compileProvider.debugInfoEnabled(false);
}]);

_module.config(['$httpProvider', '$locationProvider', '$routeProvider',
($httpProvider, $locationProvider) => {
$locationProvider.html5Mode(true);
Expand Down

0 comments on commit 0f59ddc

Please sign in to comment.