Skip to content

Commit 5cfb90c

Browse files
Copilotsapphi-red
andauthored
docs: Add DEBUG section to README for vite:plugin-static-copy logging (#192)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
1 parent a80b108 commit 5cfb90c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ So the file will be copied to `dist/wasm-files/example.wasm`.
5858
5959
See [options.ts](https://github.com/sapphi-red/vite-plugin-static-copy/blob/main/src/options.ts).
6060
61+
### Debug
62+
63+
You can enable detailed logging by setting the `DEBUG` environment variable:
64+
65+
```bash
66+
DEBUG=vite:plugin-static-copy npm run dev
67+
```
68+
69+
When debug logging is enabled, the plugin will output which file is served from each URL.
70+
6171
## Differences with `rollup-plugin-copy`
6272

6373
- Faster dev server start-up than using `rollup-plugin-copy` on `buildStart` hook.

0 commit comments

Comments
 (0)