mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 03:47:12 +00:00
31 lines
775 B
TypeScript
31 lines
775 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
|
|
const testWithInlineVue = process.env.EXTERNAL_VUE === 'false'
|
|
|
|
export default defineNuxtConfig({
|
|
future: { compatibilityVersion: process.env.TEST_V4 === 'true' ? 4 : 3 },
|
|
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,
|
|
})
|