Skip to content

Commit

Permalink
Merge pull request #20 from kenhkan/process_conditionally
Browse files Browse the repository at this point in the history
Process conditionally
  • Loading branch information
GulinSS committed Nov 19, 2013
2 parents f8ed5a4 + 64e9750 commit 6f657a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ module.exports = class JadeAngularJsCompiler
onCompile: (compiled) ->
preResult = @prepareResult compiled

# Need to stop processing if there's nothing to process
return if preResult.length is 0

assets = _.filter preResult, (v) => @staticMask.test v.path
assetsTree = @parsePairsIntoAssetsTree assets

Expand Down

0 comments on commit 6f657a3

Please sign in to comment.