nodegui-plugin-webview icon indicating copy to clipboard operation
nodegui-plugin-webview copied to clipboard

Can you make this to load local html file ?

Open khoint0210 opened this issue 4 years ago • 3 comments

Love nodegui but I have wait for this plugin for so long to be launch could you make this plugin able to load local HTML file, please

khoint0210 avatar May 07 '20 14:05 khoint0210

Can you try use file:// protocol?

tborowy avatar Jun 02 '20 13:06 tborowy

Well but the file must be from the root which is hard when I need to publish the app

khoint0210 avatar Jun 02 '20 13:06 khoint0210

@khoint0210 You can simply do

/* ... */
webview.load(`file://${path.resolve('dist/index.html')}`)

robin-rpr avatar Nov 15 '20 16:11 robin-rpr