mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
fix(vite): set root to srcDir
(#1018)
This commit is contained in:
parent
dce837941a
commit
b2c74d739f
@ -26,7 +26,7 @@ export async function bundle (nuxt: Nuxt) {
|
|||||||
config: vite.mergeConfig(
|
config: vite.mergeConfig(
|
||||||
nuxt.options.vite as any || {},
|
nuxt.options.vite as any || {},
|
||||||
{
|
{
|
||||||
root: nuxt.options.rootDir,
|
root: nuxt.options.srcDir,
|
||||||
mode: nuxt.options.dev ? 'development' : 'production',
|
mode: nuxt.options.dev ? 'development' : 'production',
|
||||||
logLevel: 'warn',
|
logLevel: 'warn',
|
||||||
define: {
|
define: {
|
||||||
|
Loading…
Reference in New Issue
Block a user