Added mpa support, nuxt4 future compatibility, improvements in intro and services
77 lines
No EOL
1.7 KiB
TypeScript
77 lines
No EOL
1.7 KiB
TypeScript
export default defineNuxtConfig({
|
|
ssr: true,
|
|
future: {
|
|
compatibilityVersion: 4,
|
|
},
|
|
|
|
nitro: {
|
|
prerender: {
|
|
routes: [
|
|
'/',
|
|
'/imp',
|
|
]
|
|
}
|
|
},
|
|
|
|
css: [
|
|
'~/assets/css/fonts.css',
|
|
'~/assets/css/global.css',
|
|
'~/assets/css/header.css',
|
|
'~/assets/css/intro.css',
|
|
'~/assets/css/skills.css',
|
|
'~/assets/css/customers.css',
|
|
'~/assets/css/services.css',
|
|
'~/assets/css/footer.css',
|
|
'~/assets/css/technology.css',
|
|
'~/assets/css/person.css',
|
|
'~/assets/css/button.css',
|
|
],
|
|
|
|
postcss: {
|
|
plugins: {
|
|
'postcss-nesting': { /* plugin options */ },
|
|
},
|
|
},
|
|
|
|
routeRules: {
|
|
'/': { prerender: true },
|
|
'/imp': { prerender: true },
|
|
},
|
|
|
|
app: {
|
|
pageTransition: {
|
|
name: 'page',
|
|
mode: 'out-in',
|
|
},
|
|
head: {
|
|
htmlAttrs: { lang: 'de' },
|
|
link: [
|
|
{ rel: 'preload', as: 'image', href: '/img/profile_big.webp', type: 'image/webp' },
|
|
{ rel: 'preload', as: 'image', href: '/img/profile_small.webp', type: 'image/webp' },
|
|
{ rel: 'preload', crossorigin: 'anonymous', as: 'font', href: '/fonts/opensans.woff2', type: 'font/woff2' },
|
|
{ rel: 'preload', crossorigin: 'anonymous', as: 'font', href: '/fonts/roboto_con_bold.woff2', type: 'font/woff2' },
|
|
{ rel: 'preload', crossorigin: 'anonymous', as: 'font', href: '/fonts/roboto_con_reg.woff2', type: 'font/woff2' },
|
|
],
|
|
}
|
|
},
|
|
|
|
modules: [
|
|
'@nuxt/icon'
|
|
],
|
|
|
|
icon: {
|
|
customCollections: [
|
|
{
|
|
prefix: 'wf',
|
|
dir: './public/img/icons'
|
|
}
|
|
],
|
|
provider: 'iconify',
|
|
serverBundle: 'local',
|
|
clientBundle: {
|
|
scan: true,
|
|
},
|
|
},
|
|
|
|
compatibilityDate: '2024-12-04'
|
|
}) |