oh-my-desk icon indicating copy to clipboard operation
oh-my-desk copied to clipboard

Webview in preloadScript.js doesn't use in `webpack-dev-server` environment

Open HyunmoAhn opened this issue 6 years ago • 0 comments

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.

HyunmoAhn avatar Jul 14 '18 16:07 HyunmoAhn