File tree Expand file tree Collapse file tree 4 files changed +5998
-1519
lines changed
Expand file tree Collapse file tree 4 files changed +5998
-1519
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const defaultCommands = {
1212 plugin : 'generate-plugin' ,
1313 info : 'info' ,
1414 migrate : 'migrate' ,
15+ serve : 'serve' ,
1516} ;
1617
1718class WebpackCLI extends GroupHelper {
Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ import { core } from "../../lib/utils/cli-flags";
1212 * @param {String[] } args - args processed from the CLI
1313 * @returns {Function } invokes the devServer API
1414 */
15- export default function serve ( args ) : void {
16- process . argv = process . argv . filter ( arg => arg !== 'serve' ) ;
15+ export default function serve ( ...args ) : void {
1716 const cli = new WebpackCLI ( ) ;
1817 // partial parsing usage: https://github.com/75lb/command-line-args/wiki/Partial-parsing
1918
You can’t perform that action at this time.
0 commit comments