Simple webpack loader for CSS validation. Based on csstree-validator.
npm i -D css-validator-loader
Use it in pair with any css/scss/postcss loader.
module: {
rules: [
{
test: /\.css?$/,
loader: 'css-loader!css-validator-loader'
}
]
}
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.
This software is released under the terms of the MIT license.