|
1 | | -export default { |
2 | | - mode: 'universal', |
3 | | - server: { |
| 1 | +export default defineNuxtConfig({ |
| 2 | + compatibilityDate: '2026-03-21', |
| 3 | + devServer: { |
4 | 4 | port: 3002, |
5 | | - host: 'localhost', |
6 | | - timing: false |
| 5 | + host: 'localhost' |
7 | 6 | }, |
8 | | - /* |
9 | | - ** Headers of the page |
10 | | - */ |
11 | | - head: { |
12 | | - title: process.env.npm_package_name || '', |
13 | | - meta: [ |
14 | | - { charset: 'utf-8' }, |
15 | | - { name: 'viewport', content: 'width=device-width, initial-scale=1' }, |
16 | | - { |
17 | | - hid: 'description', |
18 | | - name: 'description', |
19 | | - content: process.env.npm_package_description || '' |
20 | | - } |
21 | | - ], |
22 | | - link: [ |
23 | | - { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, |
24 | | - { |
25 | | - rel: 'stylesheet', |
26 | | - href: 'https://cdnjs.cloudflare.com/ajax/libs/aos/2.1.1/aos.css' |
27 | | - }, |
28 | | - { |
29 | | - rel: 'stylesheet', |
30 | | - href: |
31 | | - 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' |
32 | | - }, |
33 | | - { |
34 | | - rel: 'stylesheet', |
35 | | - href: 'https://fonts.googleapis.com/css?family=Cookie' |
36 | | - }, |
37 | | - { |
38 | | - rel: 'stylesheet', |
39 | | - href: 'https://fonts.googleapis.com/css2?family=Lobster&display=swap' |
40 | | - }, |
41 | | - { |
42 | | - rel: 'stylesheet', |
43 | | - href: |
44 | | - 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css' |
45 | | - } |
46 | | - ] |
| 7 | + app: { |
| 8 | + head: { |
| 9 | + title: process.env.npm_package_name || '', |
| 10 | + meta: [ |
| 11 | + { charset: 'utf-8' }, |
| 12 | + { name: 'viewport', content: 'width=device-width, initial-scale=1' }, |
| 13 | + { |
| 14 | + name: 'description', |
| 15 | + content: process.env.npm_package_description || '' |
| 16 | + } |
| 17 | + ], |
| 18 | + link: [ |
| 19 | + { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, |
| 20 | + { |
| 21 | + rel: 'stylesheet', |
| 22 | + href: |
| 23 | + 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' |
| 24 | + }, |
| 25 | + { |
| 26 | + rel: 'stylesheet', |
| 27 | + href: 'https://fonts.googleapis.com/css?family=Cookie' |
| 28 | + }, |
| 29 | + { |
| 30 | + rel: 'stylesheet', |
| 31 | + href: 'https://fonts.googleapis.com/css2?family=Lobster&display=swap' |
| 32 | + }, |
| 33 | + { |
| 34 | + rel: 'stylesheet', |
| 35 | + href: |
| 36 | + 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css' |
| 37 | + } |
| 38 | + ] |
| 39 | + } |
47 | 40 | }, |
48 | | - /* |
49 | | - ** Customize the progress-bar color |
50 | | - */ |
51 | | - loading: { color: '#fff' }, |
52 | | - /* |
53 | | - ** Global CSS |
54 | | - */ |
55 | | - css: ['@/assets/css/app.css'], |
56 | | - /* |
57 | | - ** Plugins to load before mounting the App |
58 | | - */ |
| 41 | + css: ['bootstrap/dist/css/bootstrap.min.css', '@/assets/css/app.css'], |
59 | 42 | plugins: [], |
60 | | - /* |
61 | | - ** Nuxt.js dev-modules |
62 | | - */ |
63 | | - buildModules: [ |
64 | | - // Doc: https://github.com/nuxt-community/eslint-module |
65 | | - '@nuxtjs/eslint-module', |
66 | | - // Doc: https://github.com/nuxt-community/stylelint-module |
67 | | - '@nuxtjs/stylelint-module' |
68 | | - ], |
69 | | - /* |
70 | | - ** Nuxt.js modules |
71 | | - */ |
72 | | - modules: [ |
73 | | - // Doc: https://bootstrap-vue.js.org |
74 | | - 'bootstrap-vue/nuxt', |
75 | | - // Doc: https://axios.nuxtjs.org/usage |
76 | | - '@nuxtjs/axios', |
77 | | - '@nuxtjs/pwa', |
78 | | - // Doc: https://github.com/nuxt-community/dotenv-module |
79 | | - '@nuxtjs/dotenv' |
80 | | - ], |
81 | | - /* |
82 | | - ** Axios module configuration |
83 | | - ** See https://axios.nuxtjs.org/options |
84 | | - */ |
85 | | - axios: {}, |
86 | | - /* |
87 | | - ** Build configuration |
88 | | - */ |
89 | | - build: { |
90 | | - /* |
91 | | - ** You can extend webpack config here |
92 | | - */ |
93 | | - extend(config, ctx) {} |
| 43 | + modules: ['@bootstrap-vue-next/nuxt', '@nuxt/eslint'], |
| 44 | + vite: { |
| 45 | + optimizeDeps: { |
| 46 | + include: ['bootstrap-vue-next', 'bootstrap-vue-next/components/BModal'] |
| 47 | + } |
94 | 48 | } |
95 | | -} |
| 49 | +}) |
0 commit comments