1. less-plugin-autoprefix
autoprefixer plugin for less.js
less-plugin-autoprefix
Package: less-plugin-autoprefix
Created by: less
Last modified: Thu, 03 Aug 2023 17:08:35 GMT
Version: 2.0.0
Downloads: 128,106
Repository: https://github.com/less/less-plugin-autoprefix

Install

npm install less-plugin-autoprefix
yarn add less-plugin-autoprefix

NPM version Dependencies devDependency Status optionalDependency Status

less-plugin-autoprefix

Uses autoprefixer to add prefixes to css after conversion from less.

lessc usage

Install..

npm install -g less-plugin-autoprefix

and then on the command line,

lessc file.less --autoprefix="browsers"

The browsers are a comma seperated list of browsers as specified with autoprefixer.

Programmatic usage

 var LessPluginAutoPrefix = require('less-plugin-autoprefix'),
    autoprefixPlugin = new LessPluginAutoPrefix({browsers: ["last 2 versions"]});
less.render(lessString, { plugins: [autoprefixPlugin] })
  .then(

Browser usage

Browser usage is not supported at this time.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code