Closed Gerolmed closed 2 years ago
this feature did not got merged at this build. You should specify to include this file manually at the maker options config file. I'll try to include it in the next release.
How do I specify it in the config?
Im not quite sure what the "root" is inside the nx project. Ive tried this:
"files": [{
"from": "apps/standalone-launcher/src/app/api",
"to": "standalone-launcher",
"filter": "preload.game.js"
}]
And it doesnt show up in the app.asar
As of v13 the preload scripts naming had been changed to ([name].)?preload.ts
(i.e. main.preload.ts, preload.ts)
As long as you keep this naming role and keep all the preload scripts in the api folder everything should be handled out of the box.
Please test in again with the latest release and let me know if you still having issues.
Works fine now. thx a lot!
Describe the bug I have to preload scripts
preload.ts
andpreload.game.ts
. I adjusted the webpack config so it would properly build the second one: But while everything works fine when I serve it out of the IDE, once I package it and try using that it wont find thepreload.game.js
but only the normalpreload.js
. I checked the app.asar file and also found it to be missing.To Reproduce Steps to reproduce the behavior:
preload.js
and notpreload.game.js
Additional Information webpack config in standalone-launcher folder:
Screenshots
Desktop (please complete the following information):