We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6629c86 commit 67c95e6Copy full SHA for 67c95e6
ui.js
@@ -39,6 +39,20 @@ module.exports = api => {
39
api.describeTask({
40
match: /vue-cli-service electron:serve/,
41
description: 'Serve your app, launch electron',
42
- link: 'https://nklayman.github.io/vue-cli-plugin-electron-builder/'
+ link: 'https://nklayman.github.io/vue-cli-plugin-electron-builder/',
43
+ prompts: [
44
+ {
45
+ name: 'noSandbox',
46
+ type: 'confirm',
47
+ default: false,
48
+ description: 'Disable sandbox (--no-sandbox)',
49
+ link: 'https://github.com/electron/electron/issues/18265'
50
+ }
51
+ ],
52
+ onBeforeRun: ({ answers, args }) => {
53
+ // Args
54
+ if (answers.noSandbox) args.push('--no-sandbox')
55
56
+
57
})
58
}
0 commit comments