Configuration
The hop toolchain is configured via a file called hop.toml.
The hop.toml file should be placed at the root of your hop project.
All paths in the config are relative to the folder containing the file.
toml
[compile]
# The language to compile to.
target = "rust"
# The output path for the file generated by the compiler.
output_path = "../output/hop.rs"
[css]
# Path to the CSS entrypoint, will be bundled and put in
# the assets output directory.
input_path = "app.css"
# Bundler for the CSS entrypoint.
# Options: "tailwind_4"
bundler = "tailwind_4"
[js]
# Path to the JS/TS entrypoint, will be bundled and put in
# the assets output directory.
input_path = "app.ts"
# Bundler for the JS/TS entrypoint.
# Options: "esbuild"
bundler = "esbuild"
[assets]
# The output directory for the assets.
output_directory = "../assets"
# A prefix added to all asset references in the compiled output.
production_prefix = "/static/"