fix(vite): explicitly set vite manifest path (#23276)

This commit is contained in:
Daniel Roe 2023-09-18 13:09:59 +01:00 committed by GitHub
parent d7aa6f37af
commit 51d90014cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ export async function buildClient (ctx: ViteBuildContext) {
cacheDir: resolve(ctx.nuxt.options.rootDir, 'node_modules/.cache/vite', 'client'), cacheDir: resolve(ctx.nuxt.options.rootDir, 'node_modules/.cache/vite', 'client'),
build: { build: {
sourcemap: ctx.nuxt.options.sourcemap.client ? ctx.config.build?.sourcemap ?? true : false, sourcemap: ctx.nuxt.options.sourcemap.client ? ctx.config.build?.sourcemap ?? true : false,
manifest: true, manifest: 'manifest.json',
outDir: resolve(ctx.nuxt.options.buildDir, 'dist/client'), outDir: resolve(ctx.nuxt.options.buildDir, 'dist/client'),
rollupOptions: { rollupOptions: {
input: { entry: ctx.entry } input: { entry: ctx.entry }