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.1.0.tbz
sha256=48754ab34d0a97c37f5f2dbf50ce46747ec0ca6d483f5adbb7305fc247fb5315
sha512=f43621b49e77adc23fab3c968e5041188e428228d1930b89c307fc8916c428f1943a5d74c21467219077247021f0ba83fda9234b0dd119dfd14b7f9746332bf7

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.