UNPKG

792 BJavaScriptView Raw
1module.exports = command => {
2 command
3 .option('out-dir', {
4 alias: 'd',
5 desc: 'The output directory of bundled files. (default: dist)'
6 })
7 .option('public-path', {
8 desc:
9 'Public URL of the output directory when referenced in a browser. (default: /)'
10 })
11 .option('format', {
12 desc: 'Bundle format'
13 })
14 .option('babel.jsx', {
15 desc: 'Controlling how to transform JSX. (default: react)'
16 })
17 .option('module-name', {
18 desc: 'Define module name'
19 })
20 .option('env', {
21 desc: 'Load .env file (default: true)'
22 })
23 .option('minimize', {
24 desc: `Minimize bundle (default: ${command.command.name === 'build'})`,
25 alias: 'm'
26 })
27 .option('progress', {
28 desc: 'Toggle progress bar'
29 })
30}