mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-10-12 17:12:12 +08:00
feat: add default value to options parameter in createServer
to make it optional
This commit is contained in:
parent
ad50cba495
commit
6cc2de7872
@ -14,7 +14,7 @@ import { startElectron } from './electron'
|
||||
|
||||
export async function createServer(
|
||||
inlineConfig: InlineConfig = {},
|
||||
options: { rendererOnly?: boolean }
|
||||
options: { rendererOnly?: boolean } = {}
|
||||
): Promise<void> {
|
||||
process.env.NODE_ENV_ELECTRON_VITE = 'development'
|
||||
const config = await resolveConfig(inlineConfig, 'serve', 'development')
|
||||
|
Loading…
x
Reference in New Issue
Block a user