开发者

How to render an HTML file when referencing it from a Chrome API method?

开发者 https://www.devze.com 2022-12-07 21:41 出处:网络
Here is some BEX code that uses a Chrome API method which requires a path to an HTML file: chrome.devtools.panels.create(

Here is some BEX code that uses a Chrome API method which requires a path to an HTML file:

chrome.devtools.panels.create(
  'My Panel',
  'icons/icon-48x48.png',
  'assets/panel.html',
  undefined
)

All works well when src-bex/assets/panel.html exists.

How can a panel.vue file be used to generate this panel.html file in the assets fold开发者_C百科er?

I tried creating panel.vue in src/assets and src-bex/assets, hoping that the panel.vue file would magically appear. It did not.

I also reviewd https://quasar.dev/quasar-cli-vite/quasar-config-js for options to have Vue process files which are not referenced by Vue code.

0

精彩评论

暂无评论...
验证码 换一张
取 消