Last active
August 29, 2015 14:03
-
-
Save hedgerh/e2ef09138c25a6109c05 to your computer and use it in GitHub Desktop.
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 tinylr = require('tiny-lr'); | |
gulp.task('dev', function () { | |
var lr = tinylr(); | |
lr.listen(35729); | |
gulp.watch(['**.{js,css,html}'], function (evt) { | |
lr.changed({ | |
body: { | |
files: [evt.path] | |
} | |
}); | |
}); | |
}); |
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
$ gulp dev | |
body-parser deprecated bodyParser: use individual json/urlencoded middlewares node_modules\tiny-l | |
r\lib\server.js:14:41 | |
body-parser deprecated urlencoded: explicitly specify "extended: true" for extended parsing node_ | |
modules\tiny-lr\node_modules\body-parser\index.js:74:29 | |
[21:11:51] Using gulpfile g:\sites\sces\gulpfile.js | |
[21:11:51] Starting 'dev'... | |
[21:11:51] Finished 'dev' after 41 ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment