Skip to content

Commit f9480ec

Browse files
author
Guillaume Chau
committed
fix(ui): task start
1 parent f50bb03 commit f9480ec

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

ui.js

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
module.exports = api => {
2-
api.describeTask({
3-
match: /vue-cli-service ssr:serve/,
4-
description: `Compiles and hot-reloads for development with SSR`,
5-
link: 'https://github.com/Akryum/vue-cli-plugin-ssr#usage',
2+
const taskCommon = {
63
prompts: [
74
{
85
name: 'port',
@@ -14,17 +11,25 @@ module.exports = api => {
1411
onBeforeRun: ({ answers, args }) => {
1512
if (answers.port) args.push('--port', answers.port)
1613
},
14+
}
15+
16+
api.describeTask({
17+
match: /vue-cli-service ssr:serve --mode production/,
18+
description: `Starts the included HTTP server for SSR in production`,
19+
link: 'https://github.com/Akryum/vue-cli-plugin-ssr#usage',
20+
...taskCommon,
1721
})
1822

1923
api.describeTask({
20-
match: /vue-cli-service ssr:build/,
21-
description: `Compiles and minifies for production with SSR`,
24+
match: /vue-cli-service ssr:serve/,
25+
description: `Compiles and hot-reloads for development with SSR`,
2226
link: 'https://github.com/Akryum/vue-cli-plugin-ssr#usage',
27+
...taskCommon,
2328
})
2429

2530
api.describeTask({
26-
match: /vue-cli-service ssr:start/,
27-
description: `Starts the included HTTP server for SSR in production`,
31+
match: /vue-cli-service ssr:build/,
32+
description: `Compiles and minifies for production with SSR`,
2833
link: 'https://github.com/Akryum/vue-cli-plugin-ssr#usage',
2934
})
3035
}

0 commit comments

Comments
 (0)