YAL-Tools / webserverfor

A little local web server with emphasis on live reload.

Repository from Github https://github.comYAL-Tools/webserverforRepository from Github https://github.comYAL-Tools/webserverfor

WebServerFor

A very tiny local web server.

This has precisely the following features of interest:

  • Serves the provided file as / and other files relative to it
    (without requiring it to be named index.html)
  • Has minimal caching
    (accessed items are stored in memory until their mtime changes)
  • Written for use with live.js userscript variation (included).
    The server will also "wiggle" reported file sizes in HEAD when the content changes without file size change (such as tweaking colors in CSS).

How to use

webserverfor path/some.html

or

webserverfor path/some.html --port 2000

Building

haxe build.hxml

About

A little local web server with emphasis on live reload.


Languages

Language:JavaScript 56.3%Language:Haxe 42.6%Language:Batchfile 1.1%