Created
January 14, 2015 21:37
-
-
Save dannyfritz/e0ec2bb00a064eb297bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
var legacyScriptsArr = [ | |
'./path/to/legacy-script1.js', | |
'./path/to/legacy-script2.js', | |
'./path/to/legacy-script3.js', | |
'./path/to/legacy-script4.js', | |
'./path/to/legacy-script5.js', | |
]; | |
gulp.task('testCompile1', function(done){ | |
return browserify(browserifyEntries) | |
.transform(hbsfy) | |
.transform(uglifyify) | |
.bundle() | |
.pipe(source('browserified.js')) | |
.pipe(gulp.src(legacyScriptsArr)) | |
.pipe(tap(0)) | |
.pipe(gulp.dest('./assets/compiled/')) | |
.on('end', done); | |
}); | |
gulp.task('testCompile2', function(){ | |
return gulp.src(legacyScriptsArr) | |
.pipe(tap(0)) | |
.pipe(gulp.dest('./assets/compiled/')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment