mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +00:00
30 lines
690 B
TypeScript
30 lines
690 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
|
|
const testWithInlineVue = process.env.EXTERNAL_VUE === 'false'
|
|
|
|
export default defineNuxtConfig({
|
|
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
|
|
})
|