Last active
March 24, 2017 21:09
-
-
Save vicziani/e6d15ac1d677c03eb4bd9b115135fe5b to your computer and use it in GitHub Desktop.
Coursera support
This file contains hidden or 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
gulp.task('usemin',['jshint'], function () { | |
return gulp.src('./app/menu.html') | |
.pipe(usemin({ | |
css:[minifycss(),rev()], | |
js: [uglify(),rev()] | |
})) | |
.pipe(gulp.dest('dist/')) | |
// Reload here | |
.pipe(browserSync.reload({stream: true})); | |
}); | |
// Simpify browser-sync task | |
gulp.task('browser-sync', ['default'], function () { | |
browserSync.init({ | |
server: { | |
baseDir: "dist", | |
index: "menu.html" | |
}, | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment