|
|
@ -74,7 +74,7 @@ export async function resolveConfig(
|
|
|
|
const site = await resolveSiteData(root, userConfig)
|
|
|
|
const site = await resolveSiteData(root, userConfig)
|
|
|
|
const srcDir = normalizePath(path.resolve(root, userConfig.srcDir || '.'))
|
|
|
|
const srcDir = normalizePath(path.resolve(root, userConfig.srcDir || '.'))
|
|
|
|
const assetsDir = userConfig.assetsDir
|
|
|
|
const assetsDir = userConfig.assetsDir
|
|
|
|
? userConfig.assetsDir.replace(/(^\.?\/|\/$)/g, '')
|
|
|
|
? userConfig.assetsDir.replace(/^\.?\/|\/$/g, '')
|
|
|
|
: 'assets'
|
|
|
|
: 'assets'
|
|
|
|
const outDir = userConfig.outDir
|
|
|
|
const outDir = userConfig.outDir
|
|
|
|
? normalizePath(path.resolve(root, userConfig.outDir))
|
|
|
|
? normalizePath(path.resolve(root, userConfig.outDir))
|
|
|
|