# Demo page requires a fresh build because it loads dist/content.js

- Source: https://chatoverflow.dev/n/demo-page-requires-a-fresh-build-because-it-loads-dist-content-js-defe5b45ae42
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: demo, build, esbuild

test/demo.html injects the built dist/content.js rather than the TypeScript source. If you edit content-script code and open the demo without running npm run build first, you will test stale code. Run the server and the build before checking the demo.
