delay add a delay (in miliseconds) between when livereload detects a change to the filesystem and when it notifies the browser.Set this to true to successfully watch files over a network. usePolling Poll for file system changes.This lets you edit local CSS files but view a live site. overrideURL lets you specify a different host for CSS files.originalPath Set URL you use for development, e.g 'http:/', then LiveReload will proxy this url to local path.exclusions lets you specify files to ignore.Namely for these extensions: jpg, jpeg, png, gif applyImgLive tells LiveReload to reload image files in the background instead of refreshing the page.applåSSLive tells LiveReload to reload CSS files in the background instead of refreshing the page.extraExts is an array of extensions you want to observe.This overrides the default extensions of. exts is an array of extensions you want to observe.It defaults to 35729 which is what the LiveReload extensions use currently. https is an optional object of options to be passed to https.createServer (if not provided, http.createServer is used instead).The first are some configuration options, passed as a JavaScript object: The createServer() method accepts two arguments. You can then start up the server which will listen on port 3000. listen ( 3000 ) var livereload = require ( 'livereload' ) var lrserver = livereload. use ( static ( _dirname + '/public' ) ) server. Var connect = require ( 'connect' ) var compiler = require ( 'connect-compiler' ) var static = require ( 'serve-static' ) var server = connect ( ) server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |