aklinker1 / vite-plugin-web-extension

Vite plugin for developing Chrome/Web Extensions
https://vite-plugin-web-extension.aklinker1.io/
MIT License
654 stars 57 forks source link

feat: Added `bundleInfoJsonPath` plugin option #211

Closed RicBent closed 2 months ago

RicBent commented 2 months ago

This PR adds the following plugin option:

bundleInfoJsonPath?: string

If set, the plugin will write a JSON file containing information about the built bundles to the specified path in the output directory. This can for example be useful for dynamically injecting content scripts/styles from background scripts.

aklinker1 commented 2 months ago

Released in https://github.com/aklinker1/vite-plugin-web-extension/releases/tag/v4.2.0!