PostCSS LESS Parser
JSON →postcss-less is a PostCSS syntax parser specifically designed for LessCSS. It facilitates the application of PostCSS plugins, such as Autoprefixer or Stylelint, directly to Less source code without the need for prior Less compilation. The current stable version is 6.0.0, which mandates PostCSS v8.3.5 or higher as a peer dependency and requires Node.js v12+ for execution. This library's core function is to parse Less syntax into a PostCSS Abstract Syntax Tree (AST), enabling manipulation by other PostCSS tools and subsequent stringification back into Less. It is crucial to understand that postcss-less is *not* a Less compiler; users seeking Less compilation should utilize the official Less toolchain. Releases typically align with PostCSS major version updates, often introducing breaking changes to maintain ecosystem compatibility, alongside regular bug fixes and minor feature enhancements. Its key differentiators include tight integration with the PostCSS ecosystem for Less-specific linting and transformation, and its robust ability to parse Less features like `@import` statements, inline comments, mixins, and variables into a manipulable AST.
Traffic · last 30 days ↑125% vs prev 7d
top countries 🇺🇸 United States · VN · 🇫🇷 France · 🇳🇴 Norway · 🇨🇦 Canada