-
-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugin-webpack): prevent the renderer config from overriding its …
…preload config's target (#1853) * fix: override preload script webpack target to electron-preload while merging to create a Webpack config for preload script, made the target from the renderer config ignored and manually set to `electron-preload` * fix: syntax error in ed70861 * chore: lint fix * test: added tests for renderer config with custom target Added 3 tests - Renderer config : generates config with custom target - web - Preload renderer config : generates a production config - Preload renderer config : generates config overriding custom target with 'electron-preload' * Apply suggestions from code review * Update packages/plugin/webpack/test/WebpackConfig_spec.ts Co-authored-by: Mark Lee <malept@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters