Nuxt/test/fixtures/minimal/nuxt.config.ts

31 lines
734 B
TypeScript

import { fileURLToPath } from 'node:url'
const testWithInlineVue = process.env.EXTERNAL_VUE === 'false'
export default defineNuxtConfig({
compatibilityDate: '2024-06-28',
pages: false,
experimental: {
externalVue: !testWithInlineVue,
},
$production: {
vite: {
$client: {
build: {
rollupOptions: {
output: {
chunkFileNames: '_nuxt/[name].js',
entryFileNames: '_nuxt/[name].js',
},
},
},
},
},
},
buildDir: testWithInlineVue ? '.nuxt-inline' : '.nuxt',
nitro: {
output: { dir: fileURLToPath(new URL(testWithInlineVue ? './.output-inline' : './.output', import.meta.url)) },
},
sourcemap: false,
})