2021-10-23 17:10:55 +00:00
|
|
|
|
|
|
|
[build]
|
|
|
|
target = "web/index.html"
|
|
|
|
release = true
|
2021-10-27 06:51:05 +00:00
|
|
|
dist = "./dist"
|
|
|
|
|
|
|
|
[clean]
|
|
|
|
dist = "./dist"
|
2021-10-23 17:10:55 +00:00
|
|
|
|
|
|
|
[[proxy]]
|
|
|
|
backend = "http://localhost:8081"
|
|
|
|
rewrite = "/api/"
|
2021-10-24 09:25:42 +00:00
|
|
|
|
|
|
|
[[hooks]]
|
|
|
|
stage="post_build"
|
|
|
|
command="npx"
|
|
|
|
command_arguments=["swc", "$TRUNK_SOURCE_DIR/src/main.ts", "-o", "$TRUNK_STAGING_DIR/main.js"]
|