cosette/nuxt.config.ts

25 lines
649 B
TypeScript
Raw Normal View History

2022-08-11 09:57:51 +02:00
import { defineNuxtConfig } from 'nuxt'
import UnpluginComponentsVite from 'unplugin-vue-components/vite'
import IconsResolver from 'unplugin-icons/resolver'
2022-08-18 09:44:51 +02:00
import serveStatic from 'serve-static'
2022-08-11 09:57:51 +02:00
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
ssr: true,
buildModules: ['@nuxtjs/tailwindcss', 'unplugin-icons/nuxt', '@nuxtjs/svg'],
2022-08-18 09:44:51 +02:00
serverMiddleware: [
{ path: '/imgs', handler: serveStatic(__dirname + '/imgs') }
],
2022-08-11 09:57:51 +02:00
vite: {
plugins: [
2022-08-18 09:44:51 +02:00
UnpluginComponentsVite({
dts: true,
resolvers: [
IconsResolver({ prefix: 'Icon' }),
],
}),
2022-08-11 09:57:51 +02:00
],
2022-08-18 09:44:51 +02:00
},
2022-08-11 09:57:51 +02:00
})