Module Ocamlbuild_js_of_ocaml

module Ocamlbuild_js_of_ocaml : sig..end

Ocamlbuild plugin to build with js_of_ocaml

Js_of_ocaml comes with a support for OCamlbuild.


Initialize the js_of_ocaml ocamlbuild plugin with the following code in

let _ = Ocamlbuild_plugin.dispatch Ocamlbuild_js_of_ocaml.dispatcher

Side note: Ocamlbuild_plugin.dispatch should be used only once. The last call will override previous ones.

With Oasis

If you use oasis, should look like:

let _ =
         (fun hook ->
            dispatch_default hook;