mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-23 14:06:59 +02:00
chore: delay starting webpack-serve by one second
This commit is contained in:
parent
50894d824d
commit
2ba359f4ed
1 changed files with 31 additions and 29 deletions
|
@ -78,6 +78,7 @@ module.exports = async function dev(sourceDir, cliOptions = {}) {
|
||||||
|
|
||||||
// webpack-serve
|
// webpack-serve
|
||||||
const nonExistentDir = path.resolve(__dirname, 'non-existent');
|
const nonExistentDir = path.resolve(__dirname, 'non-existent');
|
||||||
|
setTimeout(async () => {
|
||||||
await serve(
|
await serve(
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
|
@ -109,4 +110,5 @@ module.exports = async function dev(sourceDir, cliOptions = {}) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}, 1000);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue