🏗 scrtipt: changelog support windows (#27232)

This commit is contained in:
陈帅 2020-10-19 16:32:08 +08:00 committed by GitHub
parent ab6a4ec1c0
commit ff1b5c279d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());
});