@@ -13,20 +13,27 @@ program.version(pkg.version)
1313
1414program
1515 . command ( 'watch' )
16+ . description ( 'hot reloading mode' )
1617 . option ( '-e, --entry [webpackEntry]' , 'Set webpack entry' )
1718 . option ( '-p, --port [serverPort]' , 'Change port of server' )
1819 . option ( '--bs, --browser-sync [port]' , 'Toggle browserSync' )
1920 . option ( '-s, --silent' , 'Do not open browser window' )
2021 . option ( '-u, --use [usePresetsFor]' , 'Use presets for React or Vue or the default config' )
2122 . option ( '--ai, --auto-install' , 'Automatically install missing dependencies when editing' )
2223 . option ( '--title [htmlTitle]' , 'Set title for output html' )
24+ . option ( '--format [bundleFormat]' , 'Set bundle format' )
25+ . option ( '--target [webpackTarget]' , 'Set webpack target' )
2326 . action ( watch )
2427
2528program
2629 . command ( 'build' )
30+ . description ( 'build mode' )
2731 . option ( '-e, --entry [webpackEntry]' , 'Set webpack entry"' )
2832 . option ( '-u, --use [usePresetsFor]' , 'Use presets for React or Vue' )
2933 . option ( '--title [htmlTitle]' , 'Set title for output html' )
34+ . option ( '--format [bundleFormat]' , 'Set bundle format' )
35+ . option ( '-t, --target [webpackTarget]' , 'Set webpack target' )
36+ . option ( '-d, --dest [bundleDestDir]' , 'Set bundled file dest directory' )
3037 . action ( build )
3138
3239program . parse ( process . argv )
0 commit comments