postcss-less
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/postcss-less package

0.1.1 • Public • Published

PostCSS LESS syntax

Build Status](https://travis-ci.org/webschik/postcss-less) npm npm

A LESS parser for PostCSS.

This module does not compile LESS. It simply parses mixins as custom at-rules & variables as properties, so that PostCSS plugins can then transform LESS source code alongside CSS.

Usage

const syntax = require('postcss-less');
postcss(plugins).process(yourLessCode, {syntax: syntax}).then((result) => {
    // result.content - LESS with transformations
});

Problems

  • This plugin skips all inner mixins and &:extend() selector

Package Sidebar

Install

npm i postcss-less@0.1.1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • shellscape