Modules

html-validator
html-validator

Automatically validate Nuxt server-rendered HTML html

@nuxtjs/html-validator

@nuxtjs/html-validator

npm versionnpm downloadsGithub Actions CICodecovLicense

HTML validation using html-validate for NuxtJS

Features

  • Zero-configuration required
  • Helps reduce hydration errors
  • Detects common accessibility mistakes

📖  Read more

Quick setup

  1. Add @nuxtjs/html-validator as a dev dependency to your project
yarn add @nuxtjs/html-validator --dev # or npm install @nuxtjs/html-validator --save-dev
  1. Add @nuxtjs/html-validator to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@nuxtjs/html-validator'],
})

Development

  1. Clone this repository
  2. Install dependencies using yarn install
  3. Start development server using yarn dev

License

MIT License