2022-04-20 08:52:39 +00:00
|
|
|
import { defineNuxtConfig } from 'nuxt'
|
2022-02-17 14:23:55 +00:00
|
|
|
import { addComponent } from '@nuxt/kit'
|
2021-04-23 19:52:32 +00:00
|
|
|
|
2021-07-15 09:38:06 +00:00
|
|
|
export default defineNuxtConfig({
|
2022-08-07 09:53:53 +00:00
|
|
|
app: {
|
|
|
|
head: {
|
|
|
|
charset: 'utf-8',
|
|
|
|
link: [undefined],
|
|
|
|
meta: [{ name: 'viewport', content: 'width=1024, initial-scale=1' }, { charset: 'utf-8' }]
|
|
|
|
}
|
|
|
|
},
|
2021-07-15 09:38:06 +00:00
|
|
|
buildDir: process.env.NITRO_BUILD_DIR,
|
2022-02-25 19:11:01 +00:00
|
|
|
builder: process.env.TEST_WITH_WEBPACK ? 'webpack' : 'vite',
|
2022-09-01 10:05:02 +00:00
|
|
|
theme: './extends/bar',
|
2022-03-22 18:12:54 +00:00
|
|
|
extends: [
|
2022-06-10 13:33:16 +00:00
|
|
|
'./extends/node_modules/foo'
|
2022-03-22 18:12:54 +00:00
|
|
|
],
|
2021-07-15 09:38:06 +00:00
|
|
|
nitro: {
|
|
|
|
output: { dir: process.env.NITRO_OUTPUT_DIR }
|
2021-10-02 20:30:20 +00:00
|
|
|
},
|
|
|
|
publicRuntimeConfig: {
|
2022-03-09 13:41:24 +00:00
|
|
|
testConfig: 123
|
|
|
|
},
|
|
|
|
privateRuntimeConfig: {
|
|
|
|
privateConfig: 'secret_key'
|
2022-02-15 09:50:11 +00:00
|
|
|
},
|
2022-02-17 14:23:55 +00:00
|
|
|
modules: ['~/modules/example'],
|
|
|
|
hooks: {
|
|
|
|
'modules:done' () {
|
|
|
|
addComponent({
|
|
|
|
name: 'CustomComponent',
|
|
|
|
export: 'namedExport',
|
|
|
|
filePath: '~/other-components-folder/named-export'
|
|
|
|
})
|
|
|
|
}
|
2022-03-17 22:17:59 +00:00
|
|
|
},
|
|
|
|
experimental: {
|
2022-07-17 13:13:04 +00:00
|
|
|
reactivityTransform: true,
|
|
|
|
treeshakeClientOnly: true
|
2022-08-17 15:23:13 +00:00
|
|
|
},
|
|
|
|
appConfig: {
|
|
|
|
fromNuxtConfig: true,
|
|
|
|
nested: {
|
|
|
|
val: 1
|
|
|
|
}
|
2022-02-17 14:23:55 +00:00
|
|
|
}
|
2021-07-15 09:38:06 +00:00
|
|
|
})
|