vite-plugin-web-extension icon indicating copy to clipboard operation
vite-plugin-web-extension copied to clipboard

Make opening browser optional

Open peterhil opened this issue 2 years ago • 3 comments

I am using FreeBSD for development, and just spent two days to convert bundling from Rollup to Vite, because this plugin seemed promising for handling V3 manifest inconsistencies.

Only after I got that done, I realised that this plugin always opens a browser on dev mode using web-ext, which does not support FreeBSD. So PLEASE make this feature optional through config.

Bit tired of this...

peterhil avatar Jul 06 '23 08:07 peterhil

Why don't you just remove that part of the script from the package.json?

aleksolutions avatar Jul 06 '23 08:07 aleksolutions

I was not using web-ext on the package.json script, but just this plugin, which under the uses web-ext and tries to open a web browser after building on dev mode. That's why opened this issue.

peterhil avatar Jul 17 '23 21:07 peterhil

This plugin doesn't use web-ext at all.

If you used npm init @samrum/vite-plugin-web-extension@latest to generate a template extension, that'll use web-ext to open a browser when you use run serve:chrome or serve:firefox, but nowhere else.

If you're seeing a browser open some other way, this plugin isn't doing it.

samrum avatar Jul 20 '23 00:07 samrum