diff --git a/packages/build/src/build.js b/packages/build/src/build.js index afa795e..c664e61 100755 --- a/packages/build/src/build.js +++ b/packages/build/src/build.js @@ -32,7 +32,8 @@ const build = async (args = []) => { '--mode', production ? 'production' : 'development', ] - .concat(args), + .concat(args) + .concat(process.argv.slice(2)), { env: { NODE_PATH: './node_modules', @@ -52,6 +53,7 @@ const build = async (args = []) => { program .command('build', {isDefault: true}) + .allowUnknownOption() .description('build package') .action(() => build());