chore: delay starting webpack-serve by one second

This commit is contained in:
endiliey 2018-08-01 18:09:35 +08:00
parent 50894d824d
commit 2ba359f4ed

View file

@ -78,6 +78,7 @@ module.exports = async function dev(sourceDir, cliOptions = {}) {
// webpack-serve
const nonExistentDir = path.resolve(__dirname, 'non-existent');
setTimeout(async () => {
await serve(
{},
{
@ -109,4 +110,5 @@ module.exports = async function dev(sourceDir, cliOptions = {}) {
}
}
);
}, 1000);
};