Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

html-validate-vue-webpack-plugin

html-validate139MIT2.0.3TypeScript support: included

extract html-validate rules from Vue single file components

webpack, webpack-config, webpack-loader, webpack-plugin, html-validate, javascript, typescript

readme

html-validate-vue-webpack-plugin

extract html-validate rules from Vue single file components

Usage

Installation

Install the package and its peer dependencies:

npm install --save-dev html-validate-vue-webpack-plugin webpack

Configuration

Import the plugin and add it to your Webpack plugins:

const { HtmlValidateVueWebpackPlugin } = require("html-validate-vue-webpack-plugin");

module.exports = {
  plugins: [new HtmlValidateVueWebpackPlugin()],
};

For more advanced configuration check out the examples.

How it works

The package consist of three pieces, a webpack config, a webpack loader and a webpack plugin.

The webpack config consist of rules of how to handle .vue files.

The webpack loader handles the processing .vue files. For each file it will look for a <htmlvalidate>{}</htmlvalidate> block and assumes the JSON inside the tags is the html-validate rule for that component. The webpack loader will automatically look for the name for the html-validate rule. First it looks at the name property in the Vue file and will fallback to the filename. The name of the rule will be converted to kebab-case.

The webpack plugin combines the webpack config and webpack loader and applies the rules and processing to the your webpack config.

Examples

LICENSE

MIT

changelog

html-validate-vue-webpack-plugin changelog

2.0.3 (2022-01-05)

Dependency upgrades

  • deps: update dependency schema-utils to v4 (3b4f158)

2.0.2 (2021-11-14)

Dependency upgrades

  • deps: update dependency json-schema to ^0.4.0 (1ef62e5)

2.0.1 (2021-07-04)

Reverts

  • Revert "chore(renovate): set updateInternalDeps" (a946185)

2.0.0 (2021-06-20)

⚠BREAKING CHANGES

  • require NodeJS 12

Features

1.0.3 (2021-02-21)

Dependency upgrades

  • deps: update dependency webpack to v5 (529d3e1)

1.0.2 (2021-01-10)

Dependency upgrades

  • deps: update dependency json-schema to ^0.3.0 (0b085f1)

1.0.1 (2020-11-08)

Dependency upgrades

  • deps: migrate to schema-utils v3 (a67c8fc)
  • deps: update dependency schema-utils to v3 (ddf7687)

1.0.0 (2020-05-28)

Features

BREAKING CHANGES

  • Nothing, this commit only forces a major 1.0.0 release.

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.5.1 (2020-04-06)

Features

Bug Fixes

  • add comments to gitmessage template (d1e15af)

0.5.0 (2020-04-02)

0.4.7 (2020-04-02)

Features

  • support writing slot rules (52747ad)

0.4.6 (2020-03-31)

0.4.5 (2020-03-29)

0.4.4 (2020-03-29)

0.4.3 (2020-03-02)

Features

  • add first working prototype (3691ebc)

0.4.2 (2020-03-01)

Features

  • ongoing development f524f32

0.4.1 (2020-03-01)

Features

  • init project f4c0c8f
  • setup initial webpack dependencies d9656aa
  • update package name 366b573

Bug Fixes

  • add comments to gitmessage template 7954983