Skip to content

Commit

Permalink
perf boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
shprink committed Jul 10, 2015
1 parent b54b6ad commit 7060ce6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ app.config ($stateProvider) ->
###
ANGULAR CONF
###
app.config ($WPHCConfig, $logProvider) ->
$logProvider.debugEnabled _.get($WPHCConfig, 'debugEnabled') || false
app.config ($WPHCConfig, $logProvider, $compileProvider) ->
debugEnabled = _.get($WPHCConfig, 'debugEnabled') || false
$logProvider.debugEnabled debugEnabled
$compileProvider.debugInfoEnabled debugEnabled

###
IONIC CONF
Expand Down

2 comments on commit 7060ce6

@mingxia
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no matter development or build ,will meet error:

ERROR in ./lib/index.coffee
Module build failed: Error: Final loader didn't return a Buffer or String

@shprink
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete node_modules and run npm install again.

Please sign in to comment.