I currently create an application with electron, so I added external javascript scripts with scriptsrc to work on both electron and web page.
But I'm having trouble generating the executable for windows with electron-packager
The problem is that it is apparently not loading some functions that when the npm start command works, the only command that works is the exit button.
I'm loading the scripts this way:
<!-- node_modules -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="../main.min.js" charset="utf-8"></script>
<script src="../node_modules/vue/dist/vue.min.js" charset="utf-8"></script>
<script src="../node_modules/vue-resource/dist/vue-resource.min.js" charset="utf-8"></script>
<script src="../node_modules/jquery/dist/jquery.min.js" charset="utf-8"></script>
<!-- Vendor -->
<script type="text/javascript" src="../assets/js/vendor/framework7.min.js"></script>
<!-- Core -->
<script type="text/javascript" src="../core/f7.core.js"></script>
<script src="../core/core.min.js" charset="utf-8"></script>
<script src="../core/CommonTypes.min.js" charset="utf-8"></script>
<!-- Controller -->
<script src="../controller/Token/token.min.js" charset="utf-8"></script>
The command I am sending to generate the executable is:
electron-packager src UniPipe --platform = win32 --arch = all --version = 1.6.2 --icon = assets / img / icon.ico --out = Release --electronVersion-string.CompanyName = OmegaInc --version-string.ProductName = UniPipe --version-string.ProductVersion = 0.0.5
I wanted to know if I'm doing something wrong, if I can include the scripts that way, since the way it works with npm start does not work in the executable.