nuxt logo

문서 번역(비공식)

.nuxtignore

.nuxtignore 파일은 Nuxt가 빌드 단계에서 프로젝트의 루트 디렉토리에 있는 파일을 무시하도록 합니다.

.nuxtignore 파일은 Nuxt가 빌드 단계에서 프로젝트의 루트 디렉토리(rootDir)에 있는 파일을 무시하도록 지시합니다.

이 파일은 .gitignore.eslintignore 파일과 동일한 사양을 따르며, 각 라인은 무시할 파일을 나타내는 glob 패턴입니다.

nuxt.config 파일에서 ignoreOptions, ignorePrefix, ignore를 설정할 수도 있습니다.

사용법

.nuxtignore
# 레이아웃 foo.vue 무시
layouts/foo.vue
# 이름이 -ignore.vue로 끝나는 레이아웃 파일 무시
layouts/*-ignore.vue

# 페이지 bar.vue 무시
pages/bar.vue
# ignore 폴더 내의 페이지 무시
pages/ignore/*.vue

# foo 폴더 아래의 라우트 미들웨어 파일 무시, foo/bar.js는 제외
middleware/foo/*.js
!middleware/foo/bar.js
이것도 참고 the git documentation