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.2.tbz
sha256=1c25361b85b1bc8246572af86032c413db5cac574e2b94bbe15f97e5ab6dbc47
sha512=cb12417620793e2bbbde350b72b6032eec5c6bb628dae3b28b95adc020db96ecdbdd505d911b9ad58c1b1624827ed47574ceda79414f6f49eafcc653e362800e

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.