Closed tmtron closed 2 years ago
Probably fixed in #164.
Is there a workaround until a new version is released? Or is there a simple way to test the current master branch of this repository in my project?
@tmtron here is my workaround - add this to your nx project.json under targets -> build -> options
config - this will have nx compile and output this file separately from the main app.
main.preload.js
"additionalEntryPoints": [
{
"entryName": "main.preload",
"entryPath": "apps/app-name/src/app/api/main.preload.ts"
}
Please try v13.1.1
verified, that this is fixed in version 13.1.1
Describe the bug 13.0.0 generates:
dist/apps/app/main.preload.ts.js
I think it should not include
.ts
: e.g.dist/apps/app/main.preload.js
because this is also what is used in
app.ts
;preload: join(__dirname, 'main.preload.js'),
To Reproduce
npx create-nx-workspace@13 --name=nxelectron13 --preset=angular --appName=ng --style=scss --nxCloud=false
cd nxelectron13/
npm install -D nx-electron
nx g nx-electron:app app --frontendProject=ng --directory=
nx build ng
nx build app
dist/apps/app/
Expected behavior the file should be called
dist/apps/app/main.preload.js
(without.ts
)Desktop (please complete the following information):