mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
chore: nits && lint
This commit is contained in:
parent
9dc4cc2ff4
commit
ef17da741a
4 changed files with 7 additions and 5 deletions
|
@ -39,10 +39,11 @@ module.exports = async function build(siteDir, cliOptions = {}) {
|
|||
const serverConfig = createServerConfig(props).toConfig();
|
||||
const clientConfig = createClientConfig(props).toConfig();
|
||||
|
||||
// we build the client bundles first
|
||||
// Build the client bundles first.
|
||||
// We cannot run them in parallel because the server need to pickup the correct client bundle name
|
||||
await compile(clientConfig);
|
||||
|
||||
// then we build the server bundles (render the static HTML and pick client bundle)
|
||||
// Build the server bundles (render the static HTML and pick client bundle)
|
||||
await compile(serverConfig);
|
||||
|
||||
// copy static files
|
||||
|
|
|
@ -95,7 +95,7 @@ module.exports = async function start(siteDir, cliOptions = {}) {
|
|||
// enable HTTP range requests
|
||||
app.use(range);
|
||||
|
||||
// rewrite request to `/` since this is a SPA
|
||||
// rewrite request to `/` since dev is only a SPA
|
||||
app.use(
|
||||
convert(
|
||||
history({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue