fix: compatible with dev command

pull/836/head
JounQin 3 years ago
parent 89e8801f8e
commit 29e99aad66

@ -8,6 +8,11 @@ export async function createServer(
) { ) {
const config = await resolveConfig(root) const config = await resolveConfig(root)
if (serverOptions.base) {
config.site.base = serverOptions.base
delete serverOptions.base
}
return createViteServer({ return createViteServer({
root: config.srcDir, root: config.srcDir,
base: config.site.base, base: config.site.base,

Loading…
Cancel
Save