Repository navigation
feat(core): allow packagerConfig to override the "dir" setting - #2175
defunctzombie wants to merge 1 commit into
Conversation
By moving the "dir" property above packageConfig spread, the user can override the detected "dir" in their configuration. This allows a user to point forge at a "source dir" much like you can with electron-packager. This makes forge flexible to using alternative webpack versions or build scripts to create the "source dir" while benefiting from the package and make features of forge.
Codecov Report
@@ Coverage Diff @@
## master #2175 +/- ##
=======================================
Coverage 72.71% 72.71%
=======================================
Files 74 74
Lines 2221 2221
Branches 420 420
=======================================
Hits 1615 1615
Misses 446 446
Partials 160 160
Continue to review full report at Codecov.
|
malept
left a comment
There was a problem hiding this comment.
So I'm not sure what this accomplishes that you couldn't already do with changing the cwd:
> electron-forge package --help
✔ Checking your system
Usage: electron-forge-package [options] [cwd]
Options:
-V, --version output the version number
-a, --arch [arch] Target architecture
-p, --platform [platform] Target build platform
-h, --help output usage information
|
@malept I too tried the [cwd] approach first thinking it would do the trick but it did not work. Lets say I've built my bundle elements into a I tried investigating why "cwd" was being "ignored" in my case and concluded that it was likely due to some of the automatic resolution of package.json files with forge but didn't understand the flows enough to go further. If the |
|
I'd also like to know why you're running webpack in a process outside of the webpack plugin. |
|
@malept I've got a webpack v5 build setup that produces the electron artifacts rather than using forge webpack integration. I'm looking for a way to sidestep the forge bundling but still leverage the package and make functionality. Using |
|
I hope this feature gets implemented soon so that we can change the dir directory for some requirements |
By moving the "dir" property above packageConfig spread, the user can
override the detected "dir" in their configuration. This allows a user
to point forge at a "source dir" much like you can with electron-packager.
This makes forge flexible to using alternative webpack versions or build
scripts to create the "source dir" while benefiting from the package and make
features of forge.