less-plugin-autoprefixer
v2.1.0
Published
autoprefixer plugin for less.js
Downloads
5,107
Maintainers
Readme
less-plugin-autoprefixer
Uses autoprefixer to add prefixes to css after conversion from less.
This is an up-to-date fork of less-plugin-autoprefix.
Usage
npm install less less-plugin-autoprefixer
CLI
npx lessc file.less --autoprefix="> 0.5%, not dead"
The --autoprefix
option value is a browserslist query.
JS
const LessPluginAutoPrefixer = require('less-plugin-autoprefixer');
less.render(lessString, {
plugins: [
new LessPluginAutoPrefixer({
browsers: ['> 0.5%, not dead'],
}),
],
}).then(({ css, map, imports }) => {
// ...
});
Browser
Browser usage is not supported.