Skip to content

Commit

Permalink
stop watchify from running transforms twice
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbreiding committed Jul 2, 2014
1 parent 44e3203 commit 2098566
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/tasks/scripts.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ handleErrors = require '../lib/handle-errors'

bundle = (bundler, destination)->
bundler
.transform(browserifyShim)
.transform(coffeeify)
.transform(emberHbsfy)
.bundle()
.on('error', handleErrors)
.pipe source('app.js')
Expand All @@ -31,6 +28,11 @@ module.exports = (config)->
entries: ['./app/router.coffee']
extensions: ['.js', '.coffee', '.hbs']

bundler
.transform(browserifyShim)
.transform(coffeeify)
.transform(emberHbsfy)

bundle bundler, config.devDir

rebundle = (files)->
Expand Down

0 comments on commit 2098566

Please sign in to comment.