JSPM

  • Created
  • Published
  • Downloads 1528138
  • Score
    100M100P100Q187821F
  • License MIT

LESS parser for PostCSS

Package Exports

  • postcss-less
  • postcss-less/dist/less-parser
  • postcss-less/dist/less-stringify

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-less) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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