mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-21 08:20:24 +08:00
26e6434b75
- hippy-vue: ElementNode add repaintWithChildren API - hippy-vue: support remove outdated style of HMR chunk - hippy-vue-loader: support style hmr - hippy-vue-css-loader: support remove outdated style of HMR chunk - debug-server, vue-demo, react-demo, hippy-react: support hmr - debug-server: add hippy-dev command
35 lines
695 B
JavaScript
Executable File
35 lines
695 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const yargs = require('yargs');
|
|
const { startWebpackDevServer } = require('./server/webpack');
|
|
|
|
const { argv } = yargs
|
|
.alias('v', 'version')
|
|
.describe('v', 'show version information')
|
|
.alias('h', 'help')
|
|
.alias('c', 'config')
|
|
.demand('config')
|
|
.help()
|
|
.version()
|
|
.option('config', {
|
|
type: 'string',
|
|
default: '',
|
|
describe: 'webpack config file',
|
|
})
|
|
.epilog(`Copyright (C) 2017-${new Date().getFullYear()} THL A29 Limited, a Tencent company.`);
|
|
|
|
if (argv.verbose) {
|
|
process.env.VERBOSE = true;
|
|
}
|
|
|
|
if (argv.help) {
|
|
yargs.showHelp().exit();
|
|
}
|
|
|
|
if (argv.version) {
|
|
yargs.version().exit();
|
|
}
|
|
|
|
// Execute command
|
|
startWebpackDevServer(argv);
|