vite-plugin-specter 0.1.1 → 0.1.2
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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -773,7 +773,7 @@ function specter(options = {}) {
|
|
|
773
773
|
apply: "serve",
|
|
774
774
|
transformIndexHtml(html) {
|
|
775
775
|
const script = getClientScript(options);
|
|
776
|
-
return html.replace("</body>", `<script>
|
|
776
|
+
return html.replace("</body>", () => `<script>
|
|
777
777
|
${script}
|
|
778
778
|
</script>
|
|
779
779
|
</body>`);
|
package/dist/index.js
CHANGED
|
@@ -746,7 +746,7 @@ function specter(options = {}) {
|
|
|
746
746
|
apply: "serve",
|
|
747
747
|
transformIndexHtml(html) {
|
|
748
748
|
const script = getClientScript(options);
|
|
749
|
-
return html.replace("</body>", `<script>
|
|
749
|
+
return html.replace("</body>", () => `<script>
|
|
750
750
|
${script}
|
|
751
751
|
</script>
|
|
752
752
|
</body>`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-specter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Dev-only element inspector overlay for Vite projects. Hover any element to see its styles, component name, and spacing — then copy to clipboard for AI assistants.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|