Vue.js / Nuxt.js

Nuxt Modules

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

18 câu hỏi phỏng vấn·
Mid-Level
1

What is a Nuxt module?

Câu trả lời

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?

Câu trả lời

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?

Câu trả lời

@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 câu hỏi phỏng vấn

Nắm vững Vue.js / Nuxt.js cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí