From bcc61b0bf224a67d2c707298bd4f12965db6634d Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Tue, 29 Apr 2014 12:16:04 +0300 Subject: [PATCH] add .coffee extension to browserify extensions --- gulpfile.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gulpfile.coffee b/gulpfile.coffee index 4e8856a..604bbb8 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -45,7 +45,9 @@ handleError = (err) -> gulp.task 'scripts', -> - bundle = browserify paths.scripts.source + bundle = browserify + entries: [paths.scripts.source] + extensions: ['.coffee'] build = bundle.bundle(debug: not production) .on 'error', handleError @@ -96,7 +98,9 @@ gulp.task "watch", -> gulp.watch paths.styles.watch, ['styles'] gulp.watch paths.assets.watch, ['assets'] - bundle = watchify paths.scripts.source + bundle = watchify + entries: [paths.scripts.source] + extensions: ['.coffee'] bundle.on 'update', -> build = bundle.bundle(debug: not production)