Skip to content

Commit

Permalink
Closes #34 - Gulp tasks modularized
Browse files Browse the repository at this point in the history
  • Loading branch information
logeshpaul committed May 24, 2015
1 parent 0104acf commit f5d184e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/templates/tasks/_bower.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ gulp.task('bundle-libraries', ['bower'], function(){
}

// make the full path
mainFile = bowerDir + '/' + bowerPackage + '/' + mainFile;
mainFile = './bower_components' + '/' + bowerPackage + '/' + mainFile;

// only add the main file if it's a js file
if(underscoreStr.endsWith(mainFile, '.js')){
Expand All @@ -94,8 +94,8 @@ gulp.task('bundle-libraries', ['bower'], function(){
// run the gulp stream
return gulp.src(mainFiles)
.pipe(sourcemaps.init({loadMaps : true}))
.pipe(plugins.concat('bower.js'))
.pipe(gulpIf(config.production, plugins.uglify()))
.pipe(plugins.concat('bower.js'))
.pipe(gulpIf(config.production, plugins.uglify()))
.pipe(gulpIf(config.production, sourcemaps.write('./')))
.pipe(gulp.dest(config.build.js));
});

0 comments on commit f5d184e

Please sign in to comment.