trunk icon indicating copy to clipboard operation
trunk copied to clipboard

Trunk serve leads to missleading website

Open voidpumpkin opened this issue 2 years ago • 1 comments

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.

voidpumpkin avatar Mar 30 '22 10:03 voidpumpkin

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.

tinkyholloway avatar Jul 04 '22 23:07 tinkyholloway

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.

github-actions[bot] avatar Oct 05 '23 00:10 github-actions[bot]

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).

alexkazik avatar Oct 17 '23 09:10 alexkazik

This issue is a duplicate of https://github.com/thedodd/trunk/issues/249

hkBst avatar Nov 03 '23 18:11 hkBst

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.

github-actions[bot] avatar Dec 04 '23 00:12 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Dec 10 '23 00:12 github-actions[bot]