samrum / vite-plugin-web-extension

A vite plugin for generating cross browser platform, ES module based web extensions.
MIT License
323 stars 33 forks source link

refactor(devBuilder)!: always use transformIndexHtml for HTML processing #115

Closed samrum closed 1 year ago

samrum commented 1 year ago

The devHtmlTransform plugin option has been removed. Vite's dev HTML transform functionality is now required to support HTML files in dev (HMR) mode. In dev mode, a <base> element with the dev server url for the HTML file is injected into the page. This replaces incomplete custom logic for handling resources in HTML files.