Skip to content

Commit 568e0a1

Browse files
committed
fix(index/build): exit code 1 on render build fail
fixes #558
1 parent 6a7e80e commit 568e0a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,12 @@ module.exports = (api, options) => {
128128
options.publicPath = pluginOptions.customFileProtocol || 'app://./'
129129
info('Bundling render process:')
130130
// Build the render process with the custom args
131-
await api.service.run('build', vueArgs)
131+
try {
132+
await api.service.run('build', vueArgs)
133+
} catch (e) {
134+
error('Vue CLI build failed. Please resolve any issues with your build and try again.')
135+
process.exit(1)
136+
}
132137
// Copy package.json to output dir
133138
const pkg = JSON.parse(
134139
fs.readFileSync(api.resolve('./package.json'), 'utf8')

0 commit comments

Comments
 (0)