2024-06-22 10:54:02 +08:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
devtools: {enabled: true},
|
|
|
|
ssr: false,
|
|
|
|
modules: ['@nuxtjs/color-mode', '@hypernym/nuxt-gsap', "@nuxt/image", "@nuxtjs/google-fonts", "nuxt-primevue", 'nuxt-lucide-icons', '@pinia/nuxt', '@pinia-plugin-persistedstate/nuxt', "@vite-pwa/nuxt", "@vueuse/nuxt"],
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
gsap: {
|
|
|
|
autoImport: true,
|
|
|
|
extraPlugins: {
|
|
|
|
text: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
css: ['assets/min.scss', 'primevue/resources/themes/aura-light-green/theme.css', 'primeicons/primeicons.css', 'vue-toastification/dist/index.css'],
|
|
|
|
devServer: {
|
|
|
|
port: 3001, host: '0.0.0.0',
|
2024-06-29 18:43:36 +08:00
|
|
|
// https: {
|
|
|
|
// key: "./localhost+3-key.pem",
|
|
|
|
// cert: "./localhost+3.pem",
|
|
|
|
// }
|
2024-06-22 10:54:02 +08:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
{src: '~/plugins/vue-toast.ts'},
|
|
|
|
{src: '~/plugins/apexcharts.ts'},
|
|
|
|
],
|
|
|
|
runtimeConfig: {
|
|
|
|
baseUrl: '', public: {
|
2024-06-30 10:26:31 +08:00
|
|
|
apiBase: '/Api', baseUrl: process.env.NUXT_API_URL
|
2024-06-22 10:54:02 +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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|