chore: nits && lint

This commit is contained in:
endiliey 2018-08-28 22:44:33 +08:00
parent 9dc4cc2ff4
commit ef17da741a
4 changed files with 7 additions and 5 deletions

View file

@ -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

View file

@ -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({