You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
how to use vue-devtools in chrome extension options page #727
We have supported this by configuring appendTo, which works out-of-box by passing to vite. If you have some other special cases, we can talk about them.
Activity
alexzhang1030 commentedon Dec 6, 2024
If you are using
WXT, try thishttps://devtools.vuejs.org/help/faq#how-to-work-with-wxt
honwhy commentedon Dec 7, 2024
Yeah, I am using
WXT, work around solution may like this adding another plugin,alexzhang1030 commentedon Dec 9, 2024
We have supported this by configuring
appendTo, which works out-of-box by passing to vite. If you have some other special cases, we can talk about them.honwhy commentedon Dec 9, 2024
Note that there is a slight difference in my setup: the entry point is dynamically added through a WXT hook.
https://github.com/doocs/md/blob/79477702d245b66ce1451ec99227d16e2f729e46/src/modules/build-extension.ts#L20
alexzhang1030 commentedon Dec 10, 2024
This is your entry point I guess. Can you try it out?
DES2048 commentedon Dec 24, 2024
Ufortunately setting appendTo: "/entrypoints/options/main.ts" doesnt working for me. Can you explain how to properly set this option? I tried to set appendTo starting with src: "/src/entrypoints/options/main.ts" and with full url: http://localhost:3000/src/entrypoints/options/main.ts". But it still doesnt work:(. But in rendered main.ts I saw that devtools imports is present:
import "/node_modules/.pnpm/[email protected][email protected][email protected]_@[email protected][email protected][email protected]_/node_modules/vite-plugin-vue-devtools/src/overlay.js?__vue-devtools-next-resource"; import { createApp } from "/node_modules/.vite/deps/vue.js?v=1f931d2c"; import vuetify from "/src/plugins/vuetify.ts"; import Options2 from "/src/entrypoints/options/Options2.vue"; const app = createApp(Options2).use(vuetify); app.mount("#app"); import "/node_modules/.pnpm/[email protected][email protected]_@[email protected]_/node_modules/vite-plugin-vue-inspector/src/load.js";marijnbent commentedon Mar 12, 2025
The appendTo doesn't work for me either