mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +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');
|
fs.writeFileSync(path.join(__dirname, 'previewEditor', 'index.html'), html, 'utf8');
|
||||||
|
|
||||||
// Start preview
|
// Start preview
|
||||||
const ls = spawn('npx', [
|
const ls = spawn(
|
||||||
'http-server',
|
'npx',
|
||||||
path.join(__dirname, 'previewEditor'),
|
['http-server', path.join(__dirname, 'previewEditor'), '-c-1', '-p', '2893'],
|
||||||
'-c-1',
|
{
|
||||||
'-p',
|
shell: true,
|
||||||
'2893',
|
},
|
||||||
]);
|
);
|
||||||
ls.stdout.on('data', data => {
|
ls.stdout.on('data', data => {
|
||||||
console.log(data.toString());
|
console.log(data.toString());
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user