static-livereload

0.1.4 • Public • Published

static-livereload

livereload server for static file

installation

It depends on gulp and livereload

$ npm install -static-livereload

utilisation

static-livereload --path test
Server started on port: 3000 with livereload on port: 35729
Here are the directories you can explore and the directories linked
http://localhost:3000/ -> /usr/local/lib/node_modules/static-livereload/public
http://localhost:3000/static -> /Users/farf/Workspace/test

Just go to the url shown and you can now edit files, it will update directly in your browser!

configuration

You can inject a config file:

// config.js
module.exports = {
    paths: [{
        test: '/path/to/diretory/to/wath'
    }],
    extensions: ['html', 'css', 'js']
};
static-livereload --config /path/to/config/file
Server started on port: 3000 with livereload on port: 35729
Here are the directories you can explore and the directories linked
http://localhost:3000/ -> /usr/local/lib/node_modules/static-livereload/public
http://localhost:3000/test -> /path/to/diretory/to/wath

Readme

Keywords

none

Package Sidebar

Install

npm i static-livereload

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • farf