@csstools/postcss-debug-logger
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

PostCSS Debug Logger PostCSS Logo

npm install @csstools/postcss-debug-logger --save-dev

PostCSS Debug Logger logs the AST nodes PostCSS is processing.

This is mainly useful to track down infinite loops in PostCSS plugins.

Usage

Add PostCSS Debug Logger to your project:

npm install postcss @csstools/postcss-debug-logger --save-dev

Use it as a PostCSS plugin:

const postcss = require('postcss');
const postcssDebugLogger = require('@csstools/postcss-debug-logger');

postcss([
	postcssDebugLogger(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);

Package Sidebar

Install

npm i @csstools/postcss-debug-logger

Weekly Downloads

35

Version

3.0.0

License

MIT-0

Unpacked Size

8.43 kB

Total Files

7

Last publish

Collaborators

  • romainmenke
  • alaguna
  • jonathantneal