package tw

All checked builds pass
  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.2.0.tbz
sha256=c6f2f55bdbafd557e7716e4ab2daa012beb2ab2548090fae4a6e53c8016a3b10
sha512=13c066b3b233227d620a28abb724c8aea13c08f8f4b4657f7462d5806aa227568b921523e2675f3cd8ec8597fbe23a0f512e98f143adcf49b64a80ac95e6b740

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.