stylelint-less / postcss-less

PostCSS Syntax for parsing LESS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

postcss-less

A PostCSS syntax for parsing LESS.

Install

npm install @stylelint-less/postcss-less --save-dev

Usage

const postcss = require('postcss');
const postcssLess = require('postcss-less');

const source = `
@a: 1;
@b: 2;
@a: 3;
`;

postcss(plugins)
  .process(source, { syntax: postcssLess })
  .then((result) => {
    console.log(result.content);
  });

Note

This is a fork of postcss-less.

About

PostCSS Syntax for parsing LESS

License:MIT License


Languages

Language:JavaScript 92.8%Language:Less 7.2%