Closed jbmusso closed 2 years ago
Right now, this plugin doesn't support building extensions without a UI.
To get around this, you can create a dummy, empty HTML file:
<html></html>
And include it as an additional input:
webExtension({
...
additionalInputs: ["dummy.html"],
})
Thanks for this workaround, I can confirm this solves the issue 🙏.
Greetings, and thanks for writing this plugin.
I'm getting the following error when running
vite build --watch
:You must supply options.input to rollup
Here's my
vite.config.ts
file:And the content of
manifest.json
, if that helps:I see there's a test snapshot which also contains this error: https://github.com/aklinker1/vite-plugin-web-extension/blob/65548601c7e81a4232ddfcaf9f70b720e25904bf/tests/__snapshots__/e2e.test.ts.snap#L47
Could it be related to this line in the lib source code? https://github.com/aklinker1/vite-plugin-web-extension/blob/65548601c7e81a4232ddfcaf9f70b720e25904bf/lib/src/build-script.ts#L56
I'm fairly new to vite and not really seasoned with rollup. Is there anything that I should be tweaking on my side and/or is this something that relates to
vite-plugin-web-extension
? I'll be happy to provide more details if that helps.(Not related: I'm having ES6/TS module issues in
vite.config.ts
but I haven't bothered fixing them yet #YakShaving.)