-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple preload scripts #118
Comments
preload script scope should be determined as such: preload.scope.ts
Done. |
Does the fix mean the other preload scripts must be named |
Same behavior on my project. Should we do something special to include multiple api/preload.*.ts to the build ? (I updated the package from v11.1.3 to v11.4.0 to get this feature) Thanks in advance. |
Yes.
Create a custom webpack configuration file like @paulantoine2 suggested: module.exports = (config) => {
config.entry = {
...config.entry,
other_preload: 'apps/desktop/src/app/api/preload.other.ts',
};
return config;
}; |
I think I did not made a good decision about the preload script naming. |
preload script scope should be determined as such: preload.scope.ts
Is your feature request related to a problem? Please describe.
My application contain 2 BrowserWindows that need 2 different preload scripts, unfortunately, only app/api/preload.ts is bundled in build commands.
Describe the solution you'd like
Select all files in a folder or allow a configuration to declare preload files in workspace.json
Like
Describe alternatives you've considered
I added a custom wepack config for the build command :
But I can't find an alternative for the make command.
The text was updated successfully, but these errors were encountered: