LoongPanel-Asp/web/nuxt.config.ts

100 lines
2.6 KiB
TypeScript
Raw Normal View History

2024-06-22 10:54:02 +08:00
// https://nuxt.com/docs/api/configuration/nuxt-config
2024-07-22 18:41:15 +08:00
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
2024-08-03 13:15:41 +08:00
import {NaiveUiResolver} from 'unplugin-vue-components/resolvers'
2024-06-22 10:54:02 +08:00
2024-07-22 18:41:15 +08:00
export default defineNuxtConfig({
2024-08-03 13:15:41 +08:00
devtools: {enabled: true},
ssr: false,
modules: [
'@nuxtjs/color-mode',
'@hypernym/nuxt-gsap',
"@nuxtjs/google-fonts",
'nuxt-lucide-icons',
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
"@vueuse/nuxt",
"nuxtjs-naive-ui"
],
2024-07-22 18:41:15 +08:00
vite: {
plugins: [
AutoImport({
imports: [
{
'naive-ui': [
'useDialog',
'useMessage',
'useNotification',
'useLoadingBar'
]
}
]
}),
Components({
resolvers: [NaiveUiResolver()]
})
]
2024-06-22 10:54:02 +08:00
},
2024-08-03 13:15:41 +08:00
// pwa: {
// manifest: {
// name: "pwa nuxt 3",
// short_name: "pwa nuxt",
// theme_color: '#FFFFFF',
// description: "Arman Abi r.man.abi@gmail.com",
// icons: [{
// src: '/pwa-192x192.png', sizes: "192x192", type: "image/png"
// },]
//
//
// }, workbox: {
// navigateFallback: "/SignIn",
//
// }, devOptions: {
// enabled: true, type: "module"
// }
//
// },
2024-07-22 18:41:15 +08:00
2024-08-03 13:15:41 +08:00
gsap: {
autoImport: true,
extraPlugins: {
text: true
}
},
2024-07-22 18:41:15 +08:00
2024-08-03 13:15:41 +08:00
css: ['assets/min.scss', 'vue-toastification/dist/index.css'],
2024-07-22 18:41:15 +08:00
2024-08-03 13:15:41 +08:00
devServer: {
port: 3001, host: '0.0.0.0',
// https: {
// key: "./localhost+3-key.pem",
// cert: "./localhost+3.pem",
// }
},
2024-07-22 18:41:15 +08:00
2024-08-03 13:15:41 +08:00
plugins: [
{src: '~/plugins/vue-toast.ts'},
{src: '~/plugins/apexcharts.ts'},
],
2024-07-22 18:41:15 +08:00
2024-08-03 13:15:41 +08:00
runtimeConfig: {
baseUrl: '', public: {
2024-08-03 14:24:05 +08:00
apiBase: '/Api', baseUrl: import.meta.env.NUXT_API_URL,
2024-08-03 13:15:41 +08:00
}
},
2024-07-22 18:41:15 +08:00
2024-08-03 13:15:41 +08:00
googleFonts: {
families: {
Roboto: true, 'Josefin+Sans': true, Lato: [100, 300], Raleway: {
wght: [100, 400], ital: [100]
}, Inter: '200..700', 'Crimson Pro': {
wght: '200..900', ital: '200..700',
}, 'Noto Sans SC': {
wght: '200..900', ital: '200..700'
}
}
},
2024-07-22 18:41:15 +08:00
2024-08-03 13:15:41 +08:00
compatibilityDate: '2024-07-21',
2024-06-22 10:54:02 +08:00
})