1 Star 0 Fork 0

weijieYang/inventorymanager-frontend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nuxt.config.ts 1.92 KB
一键复制 编辑 原始数据 按行查看 历史
weijieYang 提交于 2024-12-19 21:01 . 覆盖提交
/**
* Replace these with the details of your website
*/
import { SITE_NAME, SITE_TITLE } from "./app/utils/seo";
export default defineNuxtConfig({
experimental: { typedPages: true },
future: { compatibilityVersion: 4 },
devtools: { enabled: true },
tailwindcss: {
exposeConfig: true,
editorSupport: true,
cssPath: ["~/assets/css/tailwind.css", { injectPosition: "last" }],
},
build: { transpile: ["vue-sonner"] },
colorMode: { classSuffix: "", fallback: "light", preference: "light" },
css: ["notivue/notifications.css", "notivue/animations.css"],
notivue: {
enqueue: true,
pauseOnHover: true,
pauseOnTabChange: true,
position: "top-right",
teleportTo: "body",
},
imports: {
// Add tv and VariantProps to the set of auto imported modules
imports: [
{ from: "tailwind-variants", name: "tv" },
{ from: "tailwind-variants", name: "VariantProps", type: true },
{ from: "vue-sonner", name: "toast", as: "useSonner" },
],
},
app: {
head: {
title: SITE_TITLE,
titleTemplate: `%s | ${SITE_NAME}`,
script: [
{
src: "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.12/pdfmake.min.js",
defer: true,
},
{
src: "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.12/vfs_fonts.min.js",
defer: true,
},
],
},
},
modules: [
"@vee-validate/nuxt",
"notivue/nuxt",
"@nuxtjs/tailwindcss",
"@nuxtjs/color-mode",
"@vueuse/nuxt",
"@nuxt/icon",
"@samk-dev/nuxt-vcalendar",
"@morev/vue-transitions/nuxt",
"@nuxt/fonts",
// Just in case you need it
"@pinia/nuxt",
"v-wave/nuxt",
// "@nuxtjs/google-fonts",
],
compatibilityDate: "2024-07-09",
// googleFonts: {
// download: true
// },
fonts: {
bunny: {
download: true,
preload: true,
},
providers: {
google: false,
googleicons: false,
}
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ywjgood/inventorymanager-frontend.git
git@gitee.com:ywjgood/inventorymanager-frontend.git
ywjgood
inventorymanager-frontend
inventorymanager-frontend
master

搜索帮助