| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
- export default defineNuxtConfig({
- ssr: true,
- target: 'static',
- title: 'C.V. Olivier Massot',
- devtools: {
- // @see https://github.com/nuxt/devtools
- enabled: true,
- },
- app: {
- head: {
- title: 'C.V. Olivier Massot',
- meta: [
- { charset: 'utf-8' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
- ],
- link: [
- { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
- ],
- htmlAttrs: {
- lang: 'en-US'
- }
- },
- },
- build: {
- transpile: ['vuetify'],
- },
- hooks: {
- 'builder:watch': console.log,
- },
- modules: [
- async (_, nuxt) => {
- nuxt.hooks.hook('vite:extendConfig', (config) =>
- // @ts-expect-error A revoir après que les lignes aient été décommentées
- (config.plugins ?? []).push(
- vuetify()
- // Remplacer par cela quand l'issue https://github.com/vuetifyjs/vuetify-loader/issues/273 sera règlée..
- // voir aussi : https://github.com/nuxt/nuxt/issues/15412 et https://github.com/vuetifyjs/vuetify-loader/issues/290
- // voir aussi : https://github.com/jrutila/nuxt3-vuetify3-bug
- // vuetify({
- // styles: { configFile: './assets/css/settings.scss' }
- // })
- )
- )
- },
- 'nuxt-lodash',
- '@nuxt/devtools',
- '@nuxtjs/sitemap',
- '@nuxtjs/i18n',
- ],
- vite: {
- esbuild: {
- drop: process.env.DEBUG ? [] : ['console', 'debugger'],
- tsconfigRaw: {
- compilerOptions: {
- experimentalDecorators: true,
- },
- },
- },
- ssr: {
- noExternal: ['vuetify'],
- },
- vue: {
- template: {
- transformAssetUrls,
- },
- },
- },
- router: {
- options: {
- scrollBehaviorType: 'smooth',
- },
- },
- site: {
- url: 'https://olivier-massot.ogene.fr'
- },
- compatibilityDate: '2024-07-02',
- })
|