devtools-next icon indicating copy to clipboard operation
devtools-next copied to clipboard

[Feature]: Allow appendTo as an array or glob pattern

Open SuddenDev opened this issue 1 year ago • 3 comments

Hi, I'm currently working with a Laravel Inertia setup and I'm using a multi build setup. Meaning that I have two entry files for different domains (public / backend).

Currently it's impossible to register both with the appendTo option in the Vite Plugin, but I think it would be a good addition. Optionally we could also maybe use a glob pattern instead, but both would be an improvement imo.

Is this possible and wanted? If so, I can also submit a PR. Thanks!

SuddenDev avatar Dec 18 '24 06:12 SuddenDev

Hey, PR welcome!

alexzhang1030 avatar Dec 20 '24 05:12 alexzhang1030

I made a PR but also closed it. I found the appendTo option will be passed to VueInspector https://github.com/kevinluo201/devtools/blob/main/packages/vite/src/vite.ts#L227, so if we want to the appendTo to support array, we need to make the same change in vite-plugin-vue-inspector

kevinluo201 avatar Apr 29 '25 02:04 kevinluo201

We also have a laravel based setup with multiple entry points. At the moment we are using the browser extension, but would like to use the vite plugin in the future.

Robind-ev avatar May 07 '25 08:05 Robind-ev