https://github.com/dundalek/livereloader
[Deprecated] Simple HTTP server with livereload functionality. No setup, other apps or browser extensions required.
https://github.com/dundalek/livereloader
Last synced: 5 months ago
JSON representation
[Deprecated] Simple HTTP server with livereload functionality. No setup, other apps or browser extensions required.
- Host: GitHub
- URL: https://github.com/dundalek/livereloader
- Owner: dundalek
- Archived: true
- Created: 2013-08-18T09:42:11.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-03-05T11:16:05.000Z (over 10 years ago)
- Last Synced: 2024-12-20T07:42:43.375Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Livereloader
Simple HTTP server with livereload functionality. No setup, other apps or browser extensions required.
## DEPRECATED: I switched to [browser-sync](http://www.browsersync.io/).
Install browser-sync:
```
npm install -g browser-sync
```Then put an alias into your `~/.bashrc`:
```
alias s="browser-sync start --server --directory --files '**/*'"
```You are done, use the `s` command inside your project.
---
## Install
```
npm install -g livereloader
```## Usage
```
cd /path/to/project
livereloader
```Then open your browser `http://localhost:3000`. Edit project files and the browser will automatically reloads on change.
## Options
```
-h, --help - Show help usage
-v, --version - Show package version
-p, --port - Serving files on this port (default: 3000)
-l, --lport - Livereload server on this port (default: 35729)
-d, --dir - Directory to serve files from (default current working directory)
-e, --exts - List of extensions you want to observe
-E, --exclusions - List of files to ignore
--livecss - Reload CSS files without refreshing the page (default: true)
--livejs - Reload JavaScript files without refresing the page (default: false)
```## Details
Based on [better-livereload](https://github.com/Leftium/node-livereload) and [connect-livereload](https://github.com/intesso/connect-livereload).