fix(vite): set root to srcDir (#1018)

This commit is contained in:
Daniel Roe 2021-10-14 12:17:39 +01:00 committed by GitHub
parent dce837941a
commit b2c74d739f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ export async function bundle (nuxt: Nuxt) {
config: vite.mergeConfig(
nuxt.options.vite as any || {},
{
root: nuxt.options.rootDir,
root: nuxt.options.srcDir,
mode: nuxt.options.dev ? 'development' : 'production',
logLevel: 'warn',
define: {