gulp.task('sass', function() {
gulp.src('*.sass')
.pipe(sass())
.pipe(minifyCss(''))
.pipe(rename("style.css"))
.pipe(autoprefixer({browsers: ['last 5 versions'], cascade: false}))
.pipe(gulp.dest('./'))
.pipe(browserSync.stream())
.pipe(notify("Gulp Done!"));
});
gulp.task('html', function() {
gulp.src('*.html')
});
gulp.task('browser-sync', function() {
browserSync.init({
server: {
baseDir: ""
}
});
gulp.start('watch');
});
gulp.task('watch', function () {
gulp.watch('./*.sass', ['sass']);
gulp.watch('./*.html', ['html']).on('change', browserSync.reload);
});
gulp.task('default', ['html', 'sass' ,'browser-sync']);
"overrides": {
"modernizr": {
"main": [
"dist/modernizr-build.js"
]
},
"jquery": {
"main": [
"dist/jquery.js"
]
}
}