wd-go

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 17 Imported by: 0

README

wd-go

A local html based dev server demo.

Usage

  1. Install CLI
go install github.com/Seeingu/[email protected]
  1. Add this script to your html head
<script src="https://raw.githubusercontent.com/Seeingu/wd-go/main/static/reload.js?host=localhost"></script>
  1. Run
# use `wd-go -h` to see all arguments 
wd-go ./index.html

open http://localhost:3012, edit and preview html in your browser

Support Features

  • reload after change html file

  • reload after change referenced JavaScript/CSS

  • live reload when changed global javascript variable

  • built-in popular libraries support

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL