1.0.0 • Published 2 years ago

postcss-custom-properties-checker v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

postcss-custom-properties-checker npm.io

PostCSS plugin to check unresolved postcss-custom-properties. Plugin was created because of postcss-custom-properties since version 8.0.0 removed very usefull warnings and noValueNotifications options and never bring back it.

Install

To install with npm or yarn, use

npm install --save postcss-custom-properties-checker

// or

yarn add postcss-custom-properties-checker

Options

unresolved

Similarly as in postcss-color-mod-function there are three options: throw, warn, and ignore. The default option is to throw.

Usage

postcss.config.js

module.exports = {
    plugins: [
        // Plugins for PostCSS
        ['postcss-custom-properties', {}],
        ['postcss-custom-properties-checker', { unresolved : 'warn' }],
    ],
};