Skip to content

Commit c85c612

Browse files
committed
remove Vue modes guide (broken)
1 parent 8d0d5b7 commit c85c612

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

docs/guide/configuration.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -100,24 +100,3 @@ module.exports = {
100100
:::tip
101101
If you are adding typescript after vue-cli-plugin-electron-builder, you may also want to set `mainWindow`'s type to `any` and change `process.env.WEBPACK_DEV_SERVER_URL` to `process.env.WEBPACK_DEV_SERVER_URL as string` to fix type errors. If you add typescript first, this will be done automatically.
102102
:::
103-
104-
### Using Vue Modes (.env Vars)
105-
106-
Before continuing, read the Vue CLI's [documentation on modes](https://cli.vuejs.org/guide/mode-and-env.html). To use modes in VCP Electron Builder, you have 2 options.
107-
108-
1. Pass the `--mode` command line argument to either `build:electron` or `serve:electron` (`yarn serve:electron --mode myMode`)
109-
110-
2. Set `serveMode` and `buildMode` in VCP Electron Builder's plugin options.
111-
112-
```javascript
113-
// vue.config.js
114-
115-
module.exports = {
116-
pluginOptions: {
117-
electronBuilder: {
118-
serveMode: 'development',
119-
buildMode: 'production'
120-
}
121-
}
122-
}
123-
```

0 commit comments

Comments
 (0)