From 0a22b1bf0438869cc2c128ceaf83082418a0a04b Mon Sep 17 00:00:00 2001 From: poptong Date: Wed, 1 Oct 2025 02:05:01 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=EC=BD=94=EB=93=9C=20=EC=8A=A4?= =?UTF-8?q?=ED=83=80=EC=9D=BC=20=EA=B0=9C=EC=84=A0=20=EB=B0=8F=20Node.js?= =?UTF-8?q?=2022=20=ED=98=B8=ED=99=98=EC=84=B1=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuxt.config.ts | 107 ++++++++++++++++++++++++++----------------------- 1 file changed, 57 insertions(+), 50 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 943c479..59cf347 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,19 +1,21 @@ -import { fileURLToPath } from 'node:url' -import svgLoader from 'vite-svg-loader' -import vuetify from 'vite-plugin-vuetify' +import { fileURLToPath } from "node:url"; +import svgLoader from "vite-svg-loader"; +import vuetify from "vite-plugin-vuetify"; // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ app: { head: { - titleTemplate: '%s - NuxtJS Admin Template', - title: 'Sneat', + titleTemplate: "%s - NuxtJS Admin Template", + title: "Sneat", - link: [{ - rel: 'icon', - type: 'image/x-icon', - href: '/favicon.ico', - }], + link: [ + { + rel: "icon", + type: "image/x-icon", + href: "/favicon.ico", + }, + ], }, }, @@ -22,29 +24,33 @@ export default defineNuxtConfig({ }, css: [ - '@core/scss/template/index.scss', - '@styles/styles.scss', - '@/plugins/iconify/icons.css', - '@layouts/styles/index.scss', + "@core/scss/template/index.scss", + "@styles/styles.scss", + "@/plugins/iconify/icons.css", + "@layouts/styles/index.scss", ], components: { - dirs: [{ - path: '@/@core/components', - pathPrefix: false, - }, { - path: '~/components/global', - global: true, - }, { - path: '~/components', - pathPrefix: false, - }], + dirs: [ + { + path: "@/@core/components", + pathPrefix: false, + }, + { + path: "~/components/global", + global: true, + }, + { + path: "~/components", + pathPrefix: false, + }, + ], }, - plugins: ['@/plugins/vuetify/index.ts', '@/plugins/iconify/index.ts'], + plugins: ["@/plugins/vuetify/index.ts", "@/plugins/iconify/index.ts"], imports: { - dirs: ['./@core/utils', './@core/composable/', './plugins/*/composables/*'], + dirs: ["./@core/utils", "./@core/composable/", "./plugins/*/composables/*"], }, hooks: {}, @@ -54,19 +60,19 @@ export default defineNuxtConfig({ }, // Node.js 22 호환성 설정 - compatibilityDate: '2024-10-01', + compatibilityDate: "2024-10-01", typescript: { tsConfig: { compilerOptions: { paths: { - '@/*': ['../*'], - '@layouts/*': ['../@layouts/*'], - '@layouts': ['../@layouts'], - '@core/*': ['../@core/*'], - '@core': ['../@core'], - '@images/*': ['../assets/images/*'], - '@styles/*': ['../assets/styles/*'], + "@/*": ["../*"], + "@layouts/*": ["../@layouts/*"], + "@layouts": ["../@layouts"], + "@core/*": ["../@core/*"], + "@core": ["../@core"], + "@images/*": ["../assets/images/*"], + "@styles/*": ["../assets/styles/*"], }, }, }, @@ -80,21 +86,24 @@ export default defineNuxtConfig({ vue: { compilerOptions: { - isCustomElement: tag => tag === 'swiper-container' || tag === 'swiper-slide', + isCustomElement: (tag) => + tag === "swiper-container" || tag === "swiper-slide", }, }, vite: { - define: { 'process.env': {} }, + define: { "process.env": {} }, resolve: { alias: { - '@': fileURLToPath(new URL('.', import.meta.url)), - '@core': fileURLToPath(new URL('./@core', import.meta.url)), - '@layouts': fileURLToPath(new URL('./@layouts', import.meta.url)), - '@images': fileURLToPath(new URL('./assets/images/', import.meta.url)), - '@styles': fileURLToPath(new URL('./assets/styles/', import.meta.url)), - '@configured-variables': fileURLToPath(new URL('./assets/styles/variables/_template.scss', import.meta.url)), + "@": fileURLToPath(new URL(".", import.meta.url)), + "@core": fileURLToPath(new URL("./@core", import.meta.url)), + "@layouts": fileURLToPath(new URL("./@layouts", import.meta.url)), + "@images": fileURLToPath(new URL("./assets/images/", import.meta.url)), + "@styles": fileURLToPath(new URL("./assets/styles/", import.meta.url)), + "@configured-variables": fileURLToPath( + new URL("./assets/styles/variables/_template.scss", import.meta.url) + ), }, }, @@ -103,25 +112,23 @@ export default defineNuxtConfig({ }, optimizeDeps: { - exclude: ['vuetify'], - entries: [ - './**/*.vue', - ], + exclude: ["vuetify"], + entries: ["./**/*.vue"], }, plugins: [ svgLoader(), vuetify({ styles: { - configFile: 'assets/styles/variables/_vuetify.scss', + configFile: "assets/styles/variables/_vuetify.scss", }, }), ], }, build: { - transpile: ['vuetify'], + transpile: ["vuetify"], }, - modules: ['@vueuse/nuxt', '@nuxtjs/device', '@pinia/nuxt'], -}) + modules: ["@vueuse/nuxt", "@nuxtjs/device", "@pinia/nuxt"], +});