🎨 코드 스타일 개선 및 Node.js 22 호환성 설정
Some checks failed
🚀 Deploy - Demo / deployment (push) Has been cancelled
Some checks failed
🚀 Deploy - Demo / deployment (push) Has been cancelled
This commit is contained in:
107
nuxt.config.ts
107
nuxt.config.ts
@@ -1,19 +1,21 @@
|
|||||||
import { fileURLToPath } from 'node:url'
|
import { fileURLToPath } from "node:url";
|
||||||
import svgLoader from 'vite-svg-loader'
|
import svgLoader from "vite-svg-loader";
|
||||||
import vuetify from 'vite-plugin-vuetify'
|
import vuetify from "vite-plugin-vuetify";
|
||||||
|
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
app: {
|
app: {
|
||||||
head: {
|
head: {
|
||||||
titleTemplate: '%s - NuxtJS Admin Template',
|
titleTemplate: "%s - NuxtJS Admin Template",
|
||||||
title: 'Sneat',
|
title: "Sneat",
|
||||||
|
|
||||||
link: [{
|
link: [
|
||||||
rel: 'icon',
|
{
|
||||||
type: 'image/x-icon',
|
rel: "icon",
|
||||||
href: '/favicon.ico',
|
type: "image/x-icon",
|
||||||
}],
|
href: "/favicon.ico",
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -22,29 +24,33 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
css: [
|
css: [
|
||||||
'@core/scss/template/index.scss',
|
"@core/scss/template/index.scss",
|
||||||
'@styles/styles.scss',
|
"@styles/styles.scss",
|
||||||
'@/plugins/iconify/icons.css',
|
"@/plugins/iconify/icons.css",
|
||||||
'@layouts/styles/index.scss',
|
"@layouts/styles/index.scss",
|
||||||
],
|
],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
dirs: [{
|
dirs: [
|
||||||
path: '@/@core/components',
|
{
|
||||||
pathPrefix: false,
|
path: "@/@core/components",
|
||||||
}, {
|
pathPrefix: false,
|
||||||
path: '~/components/global',
|
},
|
||||||
global: true,
|
{
|
||||||
}, {
|
path: "~/components/global",
|
||||||
path: '~/components',
|
global: true,
|
||||||
pathPrefix: false,
|
},
|
||||||
}],
|
{
|
||||||
|
path: "~/components",
|
||||||
|
pathPrefix: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: ['@/plugins/vuetify/index.ts', '@/plugins/iconify/index.ts'],
|
plugins: ["@/plugins/vuetify/index.ts", "@/plugins/iconify/index.ts"],
|
||||||
|
|
||||||
imports: {
|
imports: {
|
||||||
dirs: ['./@core/utils', './@core/composable/', './plugins/*/composables/*'],
|
dirs: ["./@core/utils", "./@core/composable/", "./plugins/*/composables/*"],
|
||||||
},
|
},
|
||||||
|
|
||||||
hooks: {},
|
hooks: {},
|
||||||
@@ -54,19 +60,19 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Node.js 22 호환성 설정
|
// Node.js 22 호환성 설정
|
||||||
compatibilityDate: '2024-10-01',
|
compatibilityDate: "2024-10-01",
|
||||||
|
|
||||||
typescript: {
|
typescript: {
|
||||||
tsConfig: {
|
tsConfig: {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
paths: {
|
paths: {
|
||||||
'@/*': ['../*'],
|
"@/*": ["../*"],
|
||||||
'@layouts/*': ['../@layouts/*'],
|
"@layouts/*": ["../@layouts/*"],
|
||||||
'@layouts': ['../@layouts'],
|
"@layouts": ["../@layouts"],
|
||||||
'@core/*': ['../@core/*'],
|
"@core/*": ["../@core/*"],
|
||||||
'@core': ['../@core'],
|
"@core": ["../@core"],
|
||||||
'@images/*': ['../assets/images/*'],
|
"@images/*": ["../assets/images/*"],
|
||||||
'@styles/*': ['../assets/styles/*'],
|
"@styles/*": ["../assets/styles/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -80,21 +86,24 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
vue: {
|
vue: {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
isCustomElement: tag => tag === 'swiper-container' || tag === 'swiper-slide',
|
isCustomElement: (tag) =>
|
||||||
|
tag === "swiper-container" || tag === "swiper-slide",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
vite: {
|
vite: {
|
||||||
define: { 'process.env': {} },
|
define: { "process.env": {} },
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('.', import.meta.url)),
|
"@": fileURLToPath(new URL(".", import.meta.url)),
|
||||||
'@core': fileURLToPath(new URL('./@core', import.meta.url)),
|
"@core": fileURLToPath(new URL("./@core", import.meta.url)),
|
||||||
'@layouts': fileURLToPath(new URL('./@layouts', import.meta.url)),
|
"@layouts": fileURLToPath(new URL("./@layouts", import.meta.url)),
|
||||||
'@images': fileURLToPath(new URL('./assets/images/', import.meta.url)),
|
"@images": fileURLToPath(new URL("./assets/images/", import.meta.url)),
|
||||||
'@styles': fileURLToPath(new URL('./assets/styles/', 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)),
|
"@configured-variables": fileURLToPath(
|
||||||
|
new URL("./assets/styles/variables/_template.scss", import.meta.url)
|
||||||
|
),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -103,25 +112,23 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
exclude: ['vuetify'],
|
exclude: ["vuetify"],
|
||||||
entries: [
|
entries: ["./**/*.vue"],
|
||||||
'./**/*.vue',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
svgLoader(),
|
svgLoader(),
|
||||||
vuetify({
|
vuetify({
|
||||||
styles: {
|
styles: {
|
||||||
configFile: 'assets/styles/variables/_vuetify.scss',
|
configFile: "assets/styles/variables/_vuetify.scss",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
build: {
|
build: {
|
||||||
transpile: ['vuetify'],
|
transpile: ["vuetify"],
|
||||||
},
|
},
|
||||||
|
|
||||||
modules: ['@vueuse/nuxt', '@nuxtjs/device', '@pinia/nuxt'],
|
modules: ["@vueuse/nuxt", "@nuxtjs/device", "@pinia/nuxt"],
|
||||||
})
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user