The docs site imports from "semiotic" which resolves to the built dist bundle, not the source files. This means:
- Source changes (
src/) don't auto-update in the docs - You must rebuild
dist/after making changes - Caches can cause stale code to be served
npm run website:start:cleanThis will:
- Remove all caches (
.parcel-cache,docs/build,dist) - Rebuild the dist bundle from source
- Start the dev server with caching disabled
- Open http://localhost:1234
npm run website:startThis will:
- Rebuild the dist bundle
- Start the dev server with caching disabled
- Open http://localhost:1234
npm run clean # Clear all caches and build artifacts
npm run dist # Rebuild dist bundle
npm run website:start # Start dev serverWhen you make changes to src/ files:
- Stop the dev server (Ctrl+C)
- Rebuild the dist bundle:
npm run dist:prod(builds production minified bundle) - Restart the dev server:
npm run website:start - Hard refresh your browser: Cmd+Shift+R (Mac) or Ctrl+Shift+F5 (Windows/Linux)
Note: The docs use the production build (dist:prod) which creates minified bundles. This ensures the package.json entry points resolve correctly.
- Stop the dev server
- Run:
npm run clean - Run:
npm run dist - Run:
npm run website:start - Hard refresh browser (Cmd+Shift+R or Ctrl+Shift+F5)
- Open DevTools > Network tab > Check "Disable cache"
- Stop the dev server
- Clear browser cache completely
- Run:
npm run website:start:clean - Hard refresh browser
The docs use the built dist bundle, not source files. Always rebuild after source changes:
npm run distnpm run clean- Remove all caches and build artifactsnpm run dist- Build non-minified dist bundle (for tests)npm run dist:prod- Build minified production bundle (for docs)npm run website:start- Start dev server (rebuilds production dist first, no cache)npm run website:start:clean- Full clean + rebuild + start dev servernpm run website:build- Build docs for productionnpm run test- Run testsnpm run lint- Check code style
.parcel-cache/- Parcel's build cachedocs/build/- Built docs websitedist/- Built semiotic bundle (used by docs)
All of these are cleared by npm run clean.