diff --git a/bin/vite.js b/bin/vite.js index 884cdbd383253f..1c724c07a88cd4 100755 --- a/bin/vite.js +++ b/bin/vite.js @@ -6,6 +6,12 @@ const getIPv4AddressList = require('../dist/utils').getIPv4AddressList console.log(chalk.cyan(`vite v${require('../package.json').version}`)) +Object.keys(argv).forEach((key) => { + if (argv[key] === 'false') { + argv[key] = false + } +}) + if (argv._[0] === 'build') { console.log(chalk.yellow('Building for production...')) require('../dist')