Skip to content

Files

Latest commit

bc0825d · Feb 23, 2025

History

History

postcss-debug-logger

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 3, 2024
Dec 15, 2023
Sep 25, 2024
Aug 3, 2024
Apr 17, 2023
Nov 11, 2024
Aug 3, 2024
Apr 17, 2023
Jun 23, 2023
Feb 23, 2025
Dec 15, 2023
Aug 3, 2024
Apr 17, 2023

README.md

PostCSS Debug Logger PostCSS Logo

npm version Build Status Discord

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 */);

PostCSS Debug Logger runs in all Node environments, with special instructions for: