oh-my-desk
oh-my-desk copied to clipboard
Webview in preloadScript.js doesn't use in `webpack-dev-server` environment
Description
webview
tag in electron and renderer process communicate with preload
attribute that preloadScript.js
in this project.
preload
script accept only file:
format path. And script in preload must bundled file because webview environment is not node but is browser so it doesn't support requireJS
and bundle it.
Result
Because above description, We doesn't test preloadScript.js
in wepack-dev-server
environment.
To develop about logic in webview, you must use yarn build:app:watch
script in package.json.
If you have additional information about this issue, Please comment then can fix this issue.