You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
├── electron-builder.[json|yml] # electron-builder configuration options (can also be placed in package.json under the "build" key)
63
+
64
+
├── electron-webpack.[json|yml] # electron-webpack configuration options (can also be placed in package.json under the "electronWebpack" key)
65
+
66
+
├── package.json # your app's package.json file
67
+
53
68
├── ...
54
69
```
55
70
56
71
## Further Configuration:
57
72
58
-
Initial configuration is already set for you in your app's package.json, but it you want to modify it:
73
+
Initial configuration is already set for you in your app's package.json, but if you want to modify it:
59
74
60
75
### CLI Options:
61
76
62
77
When building your app, any arguments will be passed to electron-builder. To pass an argument/arguments to electron-webpack, place them after --webpack.
@@ -73,7 +88,6 @@ As per Electron Builder's documentation, they can be applied:
73
88
74
89
> * in the `package.json` file of your project using the `build` key on the top level:
75
90
>
76
-
>
77
91
> ```
78
92
> "build": {
79
93
> "appId": "com.example.app"
@@ -82,7 +96,6 @@ As per Electron Builder's documentation, they can be applied:
82
96
>
83
97
> * or through the `--config <path/to/yml-or-json5-or-toml>` option (defaults to `electron-builder.yml`(or `json`, or [json5](http://json5.org/), or [toml](https://github.com/toml-lang/toml))).
84
98
>
85
-
>
86
99
> ```
87
100
> appId: "com.example.app"
88
101
> ```
@@ -97,7 +110,27 @@ To see avalible options, check out [Electron Webpack Configuration Options](http
97
110
98
111
As per Electron Webpack's documentation, they can be applied:
99
112
100
-
> Configurations can be applied in `package.json` at `electronWebpack` or in a separate `electron-webpack.(json|json5|yml)`.
113
+
> in `package.json` at `electronWebpack` or in a separate `electron-webpack.(json|json5|yml)`.
114
+
115
+
To modify the webpack config for electron builds only, use the webpackConfig object under vue-cli-plugin-electron-builder's plugin options in `vue.config.js`.
116
+
117
+
```
118
+
// vue.config.js
119
+
120
+
module.exports = {
121
+
configureWebpack: {
122
+
// Non-electron build/serve configuration
123
+
// Aliases will be automatically copied from standard config to electron config
0 commit comments