Created
September 20, 2018 16:25
-
-
Save fernandiez/3ca0a300cf0a4ceaadd61daed94652aa to your computer and use it in GitHub Desktop.
Compilar JS
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
// JavaScript settings | |
const js = { | |
src : dir.src + 'js/**/*', | |
build : dir.build + 'js/', | |
filename : 'scripts.js' | |
}; | |
// JavaScript processing | |
gulp.task('js', () => { | |
return gulp.src(js.src) | |
.pipe(deporder()) | |
.pipe(concat(js.filename)) | |
.pipe(stripdebug()) | |
.pipe(uglify()) | |
.pipe(gulp.dest(js.build)) | |
.pipe(browsersync ? browsersync.reload({ stream: true }) : gutil.noop()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment