aaronj1335
CDCloudflare Developers
•Created by aaronj1335 on 7/31/2024 in #pages-help
Why does `wranger pages dev` watch the output directory changes instead of source?
Hi all 👋
When I run
wranger pages dev
, it only rebuilds when something changes in my output directory, build
.
How do I get it to rebuild when something in my source directory, src
changes?
My directory structure looks like:
And npm run build
just runs tsc --outDir build
to compile all of the stuff in src
to the corresponding JS file in build
wrangler.toml
:
3 replies