Describe the bug
Webview tag shows a blank page.
To Reproduce
Steps to reproduce the behavior:
App.vue template with webview tag<template>
<div id="app">
<webview
id="foo"
src="https://www.github.com/"
style="display:inline-flex; width:640px; height:480px"
></webview>
</div>
</template>
Expected behavior
The window shows the github page.
Screenshots

Environment (please complete the following information):
"dependencies": {
"core-js": "^2.6.5",
"vue": "^2.6.10"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.11.0",
"@vue/cli-plugin-eslint": "^3.11.0",
"@vue/cli-service": "^3.11.0",
"babel-eslint": "^10.0.1",
"electron": "^5.0.0",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"vue-cli-plugin-electron-builder": "^1.4.0",
"vue-template-compiler": "^2.6.10"
},
You now need to explicitly enable webviewTag in your webPreferences object.
const mainWindow = new BrowserWindow({
webPreferences: {
webviewTag: true
}
})
Most helpful comment
You now need to explicitly enable webviewTag in your webPreferences object.
https://electronjs.org/docs/api/webview-tag