mishal/iless-plugin-autoprefix
最新稳定版本:1.1.0
Composer 安装命令:
composer require mishal/iless-plugin-autoprefix
包简介
ILess plugin for autoprefixing CSS
README 文档
README
Autoprefixes the generated CSS using PostCSS autoprefixer plugin.
Build Status
Requirements
To use this plugin you need node.js > 0.12 installed on the machine.
Installation
Install using composer:
$ composer require mishal/iless-plugin-autoprefix
Install requirements
$ npm install postcss-cli autoprefixer
See package.json for required versions.
Programmatic Usage
use ILess\Parser;
use ILess\Plugin\Autoprefix\AutoprefixPlugin;
$parser = new Parser();
// register the plugin
$parser->getPluginManager()->addPlugin(new AutoprefixPlugin([
// see https://github.com/ai/browserslist
'browsers' => ['last 2 versions']
]));
$parser->parseFile('/example.less');
$css = $parser->getCSS();
Less Code – Example.less
a {
display: flex;
}
Generated CSS
a {
display: -ms-flexbox;
display: flex;
}
统计信息
- 总下载量: 320
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-17