Skip to content

Instantly share code, notes, and snippets.

Last active December 6, 2018 20:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save deepfriedfilth/4085247165dbfe798a03321788c62da3 to your computer and use it in GitHub Desktop.
minimal gulp config
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var browserSync = require('browser-sync').create();
var reload = browserSync.reload;
gulp.task('styles', function(done) {
/* Sass it up, pack it up */
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
gulp.task('html', function(done) {
gulp.task('php', function(done) {
gulp.task('js', function(done) {
gulp.task('watch:sass', function(done) {
return'sass/**/*.scss',gulp.series('styles')).on('change', reload);
gulp.task('watch:html', function(done) {
return'**/*.html',gulp.series('html')).on('change', reload);
gulp.task('watch:php', function(done) {
return'**/*.php',gulp.series('php')).on('change', reload);
gulp.task('watch:js', function(done) {
return'js/**/*.js',gulp.series('js')).on('change', reload);
gulp.task('sync', function(done) {
proxy: '',
browser: 'google chrome'
gulp.task('watch', gulp.parallel('watch:js', 'watch:sass', 'watch:php', 'watch:html'));
gulp.task('default', gulp.series('sync', 'watch'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment