trunk
trunk copied to clipboard
Trunk serve leads to missleading website
Given i have ran my website using trunk serve. When i edit my code to have a compiler error Then my cli shows the error but my website is still up as if everything is fine
I would expect trunk to either display "You have errors in you cli" or just plain old not serve that website when its incorrect.
I keep i working with my website after quick changes only to after 5 seconds find out im testing out outdated cashed version.
You want to remove the contents of ./dist each time you start a build?
Take a look at hooks and the env variable TRUNK_DIST_DIR. (https://trunkrs.dev/assets/). Seems you could use a pre_build hook to clear your dist directory each time you start a build.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Other tools show in development mode an overlay if there is an compile error.
It would be great if this can also be added to trunk (even if it's just to tell you to look into the shell and not the full error output).
This issue is a duplicate of https://github.com/thedodd/trunk/issues/249
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.