* Add optional static_dir support - add optional application.static_dir field defaulting to none - copy configured static directory into web output during build/serve - document config knob and add unit tests - force full rebuild when static_dir contents change - sync removes stale outputs and logs copy activity - track static manifest next to platform dir Tests: cargo fmt * default to public dir to match vite * static_dir -> public_dir * wip * deser as none... * wip... use .manifest.json * implement dumb form of asset manifest generation * implement manifest using asset system directly * cleanup * dont create extra asset dir for server --------- Co-authored-by: Evan Almloff <evanalmloff@gmail.com> Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
27 lines
480 B
TOML
27 lines
480 B
TOML
[application]
|
|
|
|
# App name
|
|
name = "project_name"
|
|
|
|
# `build` & `serve` output path
|
|
out_dir = "dist"
|
|
|
|
# Static files copied verbatim into the built app (set to enable, e.g. "public")
|
|
public_dir = "public"
|
|
|
|
[web.app]
|
|
|
|
# HTML title tag content
|
|
title = "project_name"
|
|
|
|
[web.watcher]
|
|
|
|
# When watcher is triggered, regenerate the `index.html`
|
|
reload_html = true
|
|
|
|
# Which files or dirs will be monitored
|
|
watch_path = ["src", "public"]
|
|
|
|
[[web.proxy]]
|
|
backend = "http://localhost:8000/api/"
|