Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 729 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 729 Bytes

css-validator-loader

Simple webpack loader for CSS validation. Based on csstree-validator.

Install

npm i -D css-validator-loader

Usage

Use it in pair with any css/scss/postcss loader.

module: {
  rules: [
    {
      test: /\.css?$/,
      loader: 'css-loader!css-validator-loader'
    }
  ]
}

About

This loader will help you detect syntax errors and typos in your stylesheets by friendly warnings in console.

Here is described the grammar by which the validation is performed.

Compatible with Webpack 2-4.

License

This software is released under the terms of the MIT license.