package tw

  1. Overview
  2. Docs
On This Page
  1. Livereload module
Type-safe Tailwind CSS v4 in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tw-1.0.0.tbz
sha256=198a142b69828a53a0c8812b70f279be6c216b411b370c3433d5fe94be5d495e
sha512=fe0a94ef1ff22e19c669d4370c6b555bf323053e05a8cfc315196beb312703f68ec62966b2b7780b6a79c2e8db88e8aa816d7fe3cb3a2044e6f52ed4d839a3b4

doc/tw.html/Tw_html/Livereload/index.html

Module Tw_html.LivereloadSource

Livereload module

Development-time live reloading support.

Sourceval enabled : bool

enabled is true if SITE_LIVERELOAD environment variable is "true".

Sourceval endpoint : string

endpoint is the WebSocket endpoint for livereload. Defaults to "ws://localhost:8080" or SITE_LIVERELOAD_ENDPOINT.

Sourceval script : t

script is the JavaScript code for livereload functionality. Only included when enabled is true.