Failed to load renderer.js #1905
-
I tried to implement a renderer script such that the implementation meets the Electron Documention standards. When I add a script to the Double dots: <script src="../src/renderer.js"></script> Single dot: <script src="./src/renderer.js"></script> Or no dots at all: <script src="src/renderer.js"></script> The developer console will always return either Does anyone happen to know how to correctly implement a renderer script for this type of project? My <!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<!--How to implement renderer?-->
<!--<script src="./renderer.js" ></script>-->
<script src="../src/renderer.js"></script>
</body>
</html> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I am sure what you want to do with the renderer script. Are you trying to bypass Vue? Maybe you shouldn't be using this project in that case... |
Beta Was this translation helpful? Give feedback.
I am sure what you want to do with the renderer script. Are you trying to bypass Vue? Maybe you shouldn't be using this project in that case...