Last active
August 29, 2015 14:05
-
-
Save iCodeForBananas/3170b7a5e166b3be11eb to your computer and use it in GitHub Desktop.
Live Reload With GulpJS
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
var gulp = require('gulp'); | |
var livereload = require('gulp-livereload'); | |
gulp.task('watch', function () { | |
var server = livereload(); | |
gulp | |
.watch([ | |
"wp-content/themes/ulc-org/**/*.*", | |
"become-a-minister/**/*.*" | |
]) | |
.on('change', function(file) { | |
server.changed(file.path); | |
}); | |
}); | |
gulp.task('default', ['watch']); |
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
{ | |
"name": "my app", | |
"version": "0.0.0", | |
"description": "", | |
"main": "gulpfile.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"gulp": "^3.8.7", | |
"gulp-livereload": "^2.1.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment