New Tab #141
-
HEY. I have been trying unsuccessfully to make it so that when I click on a button in the extension's popup it opens a new tab with a new page/"instance" of Svelte. However, if I use How can I resolve this? Anyway, thank you very much for this wonderful extension! Automatically translated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Like you said, it is possible to open HTML files included in the extension, like your It's also possible to configure the plugin to build additional HTML files not listed in your manifest.json. So you've got listed files, like your So what you're looking for is an unlisted HTML file. First, create the file. touch pages/some-page.html Then add it to the Build the extension, and you'll see the new HTML file in your You can get the url of this file at runtime with |
Beta Was this translation helpful? Give feedback.
Like you said, it is possible to open HTML files included in the extension, like your
popup.html
.It's also possible to configure the plugin to build additional HTML files not listed in your manifest.json.
So you've got listed files, like your
popup.html
, that are listed in your manifest, and you've got unlisted files that are not listed in your manifest.json. Both listed and unlisted files are writen to thedist/
directory and can be loaded at runtime.So what you're looking for is an unlisted HTML file.
First, create the file.
Then add it to the
additionalInpits
plugin option.Build the extension, and you'll see the new HTML file in your
dist/
directory atdis…