boussole-pluss/frontend/nuxt.config.js

57 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
2022-10-07 14:15:53 +00:00
app: {
header: {
link: [{ rel: 'icon', type: 'image/svg', href: '/images/favicon.svg' }]
}
2022-10-07 14:15:53 +00:00
},
modules: [
"@nuxtjs/device",
"@pinia/nuxt"
2022-10-07 14:15:53 +00:00
],
css: ["~/assets/css/main.scss"],
ssr: false,
2022-10-07 14:15:53 +00:00
devServer: {
port: Number(process.env.PORT) || 3000
},
2022-10-07 14:15:53 +00:00
runtimeConfig: {
public: {
baseURL: process.env.BACKEND_BASE_URL || "http://localhost:8080"
}
},
2022-10-07 14:15:53 +00:00
components: [
{
path: "~/components",
pathPrefix: false
}
2022-10-07 14:15:53 +00:00
],
pinia: {
autoImports: [
// automatically imports `defineStore`
"defineStore", // import { defineStore } from 'pinia'
["defineStore", "definePiniaStore"] // import { defineStore as definePiniaStore } from 'pinia'
]
2022-10-07 14:15:53 +00:00
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData:
'@use "@/assets/css/_color.scss" as *;@use "@/assets/css/_mixin.scss" as *;@use "@/assets/css/_font.scss" as *;@use "@/assets/css/_spacing.scss" as *;'
2022-10-07 14:15:53 +00:00
}
}
}
},
compatibilityDate: "2024-07-06"
});