mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
🏗 scrtipt: changelog support windows (#27232)
This commit is contained in:
parent
ab6a4ec1c0
commit
ff1b5c279d
@ -226,13 +226,13 @@ async function printLog() {
|
||||
fs.writeFileSync(path.join(__dirname, 'previewEditor', 'index.html'), html, 'utf8');
|
||||
|
||||
// Start preview
|
||||
const ls = spawn('npx', [
|
||||
'http-server',
|
||||
path.join(__dirname, 'previewEditor'),
|
||||
'-c-1',
|
||||
'-p',
|
||||
'2893',
|
||||
]);
|
||||
const ls = spawn(
|
||||
'npx',
|
||||
['http-server', path.join(__dirname, 'previewEditor'), '-c-1', '-p', '2893'],
|
||||
{
|
||||
shell: true,
|
||||
},
|
||||
);
|
||||
ls.stdout.on('data', data => {
|
||||
console.log(data.toString());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user