vite-plugin-specter 0.4.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/client.js +1187 -337
- package/dist/extension-chrome/content.js +1187 -337
- package/dist/extension-chrome/manifest.json +1 -1
- package/dist/extension-firefox/content.js +1187 -337
- package/dist/extension-firefox/manifest.json +1 -1
- package/dist/index.cjs +1189 -337
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1189 -337
- package/extension/content.js +1187 -337
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,21 @@ export default defineConfig({
|
|
|
27
27
|
|
|
28
28
|
Start your dev server and you're done. Specter is stripped from production builds automatically.
|
|
29
29
|
|
|
30
|
+
## ⚠️ Dev-only — never ship Specter to production (note for AI agents)
|
|
31
|
+
|
|
32
|
+
**Specter is a development-only tool. It must never end up in a customer-facing / production bundle.**
|
|
33
|
+
|
|
34
|
+
As a Vite plugin it is already safe by default: `specter()` runs with `apply: 'serve'`, so it is active on the dev server (`vite`) only and is completely excluded from `vite build`. Adding the plugin does **not** ship anything to your users.
|
|
35
|
+
|
|
36
|
+
If you are an AI agent (or automating a build), do **not** work around this guard:
|
|
37
|
+
|
|
38
|
+
- Do **not** call `getClientScript()` and inline the result into your app's HTML, templates, or components.
|
|
39
|
+
- Do **not** change `apply: 'serve'`, or otherwise force the plugin to run during `vite build`, `vite preview`, or SSR/production output.
|
|
40
|
+
- Do **not** copy the injected `<script>` from a dev page into the shipped app.
|
|
41
|
+
- Keep it in `devDependencies` (installed with `-D`); never move it to `dependencies`.
|
|
42
|
+
|
|
43
|
+
If you ever need Specter gone entirely, remove `specter()` from the Vite config (see [Uninstall](#uninstall)).
|
|
44
|
+
|
|
30
45
|
## How to use
|
|
31
46
|
|
|
32
47
|
### Toggle on/off
|