-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
34 lines (33 loc) · 942 Bytes
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import removeConsole from 'vite-plugin-remove-console'
import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
css: ['~/assets/css/main.scss'],
ssr: true,
modules: [
'nuxtjs-naive-ui',
'@nuxtjs/tailwindcss',
'nuxt-svgo',
],
app: {
pageTransition: { name: 'page', mode: 'in-out' },
head: {
script: [{ src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4970120746558354', crossorigin: 'anonymous' }],
},
},
tailwindcss: {
cssPath: '~/assets/css/tailwind.css',
configPath: './tailwind.config.js',
},
vite: {
plugins: [
removeConsole(),
Components({
dts: './types/components.d.ts',
resolvers: [NaiveUiResolver()],
}),
],
},
})