Modules
html-validator
html-validator
Automatically validate Nuxt server-rendered HTML html
@nuxtjs/html-validator
HTML validation using html-validate for NuxtJS
Features
- Zero-configuration required
- Helps reduce hydration errors
- Detects common accessibility mistakes
Quick setup
- 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
- Add
@nuxtjs/html-validator
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: ['@nuxtjs/html-validator'],
})
Development
- Clone this repository
- Install dependencies using
yarn install
- Start development server using
yarn dev