46 lines
1.1 KiB
TOML
46 lines
1.1 KiB
TOML
|
|
[build]
|
||
|
|
target = "index.html"
|
||
|
|
dist = "dist"
|
||
|
|
minify = "on_release"
|
||
|
|
filehash = true
|
||
|
|
|
||
|
|
[watch]
|
||
|
|
watch = ["src", "style", "assets"]
|
||
|
|
ignore = ["dist", "target"]
|
||
|
|
|
||
|
|
[serve]
|
||
|
|
address = "127.0.0.1"
|
||
|
|
port = 3000
|
||
|
|
open = false
|
||
|
|
# Proxy API calls to the Rust orchestrator
|
||
|
|
[[serve.proxy]]
|
||
|
|
backend = "http://127.0.0.1:8080/"
|
||
|
|
rewrite = "/api/{tail}"
|
||
|
|
ws = true
|
||
|
|
|
||
|
|
[clean]
|
||
|
|
dist = "dist"
|
||
|
|
cargo = true
|
||
|
|
|
||
|
|
# Release mode optimizations are already set in main [build] section above
|
||
|
|
|
||
|
|
# TailwindCSS processing - temporarily disabled to test build
|
||
|
|
# [[hooks]]
|
||
|
|
# stage = "pre_build"
|
||
|
|
# command = "npx"
|
||
|
|
# command_arguments = ["tailwindcss", "-i", "./style/input.css", "-o", "./style/output.css", "--watch"]
|
||
|
|
|
||
|
|
# [[hooks]]
|
||
|
|
# stage = "build"
|
||
|
|
# command = "npx"
|
||
|
|
# command_arguments = ["tailwindcss", "-i", "./style/input.css", "-o", "./style/output.css", "--minify"]
|
||
|
|
|
||
|
|
# PostCSS processing for production - temporarily disabled to test build
|
||
|
|
# [[hooks]]
|
||
|
|
# stage = "post_build"
|
||
|
|
# command = "npx"
|
||
|
|
# command_arguments = ["postcss", "dist/*.css", "--use", "autoprefixer", "--replace"]
|
||
|
|
|
||
|
|
# Service Worker registration
|
||
|
|
[build.tools]
|
||
|
|
sass = "style/input.scss"
|