Skip to content

Commit 3f60047

Browse files
committed
fix(poi): support old version
Already forget since which version support `plugin.when`
1 parent 020869a commit 3f60047

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

poi.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ const colors = require('@poi/dev-utils/colors')
33

44
exports.name = 'loading-screen'
55

6-
exports.when = api => api.args.has('s') || api.args.has('serve')
7-
86
exports.apply = api => {
7+
if (!api.args.has('s') && !api.args.has('serve')) return
98
/**
109
* Prepare arguments for open browser
1110
*/

0 commit comments

Comments
 (0)