Vue.js / Nuxt.js

Nuxt Modules

Nuxt modules ecosystem, Nuxt Content, Nuxt Image, Nuxt UI, Pinia module, creating custom modules

18 คำถามสัมภาษณ์·
Mid-Level
1

What is a Nuxt module?

คำตอบ

A Nuxt module is a function that runs during application startup and can extend or modify Nuxt's default behavior. Modules can add plugins, configure the build, register hooks, or integrate third-party libraries. They enable extending Nuxt in a reusable and shareable way, like @nuxt/content or @nuxt/image.

2

How to install and configure a Nuxt module in the application?

คำตอบ

To install a Nuxt module, first install it via npm/yarn/pnpm, then add it to the modules array in nuxt.config.ts. For example: npm install @nuxt/content then add '@nuxt/content' to modules: []. Some modules also accept configuration options in the same nuxt.config.ts file.

3

What is the main purpose of the @nuxt/content module?

คำตอบ

@nuxt/content enables creating content-driven applications by transforming Markdown, YAML, CSV and JSON files into a queryable database. It provides a file-based content management system (CMS) with extended Markdown support, syntax highlighting, full-text search and automatic table of contents generation. Ideal for blogs, documentation and static sites.

4

How to fetch a specific document with @nuxt/content?

5

What is the main advantage of the @nuxt/image module?

+15 คำถามสัมภาษณ์

เชี่ยวชาญ Vue.js / Nuxt.js สำหรับการสัมภาษณ์ครั้งถัดไป

เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์

เริ่มใช้ฟรี