프로그래밍/정리

Nuxt 3 완벽 마스터 복습 항목 2

말랑공룡 2024. 3. 28. 17:10

 

 

1. nuxtApp

프로그램이 실행되는 동안의 정보를 갖고 있는 객체

https://nuxt.com/docs/guide/going-further/nuxt-app

 

NuxtApp · Nuxt Advanced

In Nuxt 3, you can access runtime app context within composables, components and plugins.

nuxt.com

 

2. plugins

auto-import 적용 ,,

하지만 중첩 디렉토리가 있다면 nuxt.config.js에서 수동으로 등록해줘야 한다.

등록 순서는 알파벳 순 ..

하지만 병렬 등록도 할 수 있음.

 

3. GA 관련 활용 참고

'vue-gtag'

https://gymcoding.notion.site/Nuxt-plugins-utils-03926b78a4c6470e9ec728c4cd323bda#748198d6498741c988f20e9988c0df3c

 

Nuxt plugins(다국어) & utils | Notion

plugins

gymcoding.notion.site

 

4. 에러페이지

app.vue와 같은 위치에 error.vue를 만든다.

https://nuxt.com/docs/guide/directory-structure/error

 

error.vue · Nuxt Directory Structure

The error.vue file is the error page in your Nuxt application.

nuxt.com

 

5. Lifecycle Hooks

https://nuxt.com/docs/guide/going-further/hooks

 

Lifecycle Hooks · Nuxt Advanced

Nuxt provides a powerful hooking system to expand almost every aspect using hooks.

nuxt.com

 

'프로그래밍 > 정리' 카테고리의 다른 글

Nuxt 3 완벽 마스터 복습 항목  (0) 2024.03.26
Vue3 완벽 마스터 복습 필요 항목  (1) 2024.03.25
스프링 DB 1편 정리  (0) 2023.09.13