Modules

capo

Capo.js implementation for Nuxt

capo.js for Nuxt

npm versionnpm downloadsGithub ActionsCodecov

capo.js implementation for Nuxt 3

Features

  • ✨ validates your <head> in dev mode and when prerendering pages
  • 🔎 visualises optimal head configuration

Installation

Install and add nuxt-capo to your nuxt.config.

# Whichever matches your package manager
pnpm add -D nuxt-capo
npm install -D nuxt-capo
yarn add -D nuxt-capo
export default defineNuxtConfig({
  modules: ['nuxt-capo'],
})

Usage

That's it! You should now see debugging info and suggestions when server rendering your routes

Optimal head configurationSuggestions for head

Credits

Thanks to @rviscomi for making capo.js!

💻 Development

  • Clone this repository
  • Enable Corepack using corepack enable (use npm i -g corepack for Node.js < 16.10)
  • Install dependencies using pnpm install
  • Stub module with pnpm dev:prepare
  • Run pnpm dev to start playground in development mode

License

Made with ❤️

Published under the MIT License.