Skip to content

Serve the contents of a directory and livereload those that change

Notifications You must be signed in to change notification settings

hunterloftis/barkeep

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

barkeep

Start a static file server in the current directory, inject a livereload snippet into the HTML files served, and update the browser without refreshing whenever anything changes.

screencast

Installation

npm install -g barkeep

Usage

cd {{ your project's directory }}
barkeep

Notes

This works by automatically inserting a liverelead script right before the close of the body element. This might not work for all set ups. You can insert the script manually by adding this tag to your HTML:

<script src="http://localhost:35729/livereload.js"></script>

This uses tiny-lr and gaze behind the scenes.

About

Serve the contents of a directory and livereload those that change

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%