Skip to content

AnYiEE/less-plugin-preset-env

 
 

Repository files navigation

NPM version

less-plugin-preset-env

Uses postcss-preset-env to convert modern css syntax and determine required polyfills after conversion from less.

Download stats

Installation

pnpm add -D postcss postcss-preset-env less-plugin-preset-env

lessc usage

lessc file.less --preset-env="browsers"

The browsers are a comma seperated list of browsers as specified with preset-env.

Programmatic usage

var LessPluginPresetEnv = require('less-plugin-preset-env'); // or
// import LessPluginPresetEnv from 'less-plugin-preset-env';

/** @see https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env#options */
var options = {};

less.render(lessString, { plugins: [new LessPluginPresetEnv(options)] })
  .then(

Browser usage

Browser usage is not supported at this time.

Languages

  • JavaScript 100.0%