Skip to content

Commit 6da68ec

Browse files
authored
chore(example): accept arguments via run-script (#2115)
1 parent 8738bd1 commit 6da68ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/run-example.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
const { spawn } = require('child_process');
44

5+
const [, , ...args] = process.argv;
56
const cwd = process.env.INIT_CWD;
6-
spawn('node', ['../../../bin/webpack-dev-server.js'], {
7+
spawn('node', ['../../../bin/webpack-dev-server.js', ...args], {
78
cwd,
89
stdio: 'inherit',
910
});

0 commit comments

Comments
 (0)