Skip to content

Instantly share code, notes, and snippets.

@vicziani
Last active March 24, 2017 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vicziani/e6d15ac1d677c03eb4bd9b115135fe5b to your computer and use it in GitHub Desktop.
Save vicziani/e6d15ac1d677c03eb4bd9b115135fe5b to your computer and use it in GitHub Desktop.
Coursera support
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