项目作者: zhuping

项目描述 :
Prefix CSS for mat
高级语言: JavaScript
项目地址: git://github.com/zhuping/mat-autoprefixer.git
创建时间: 2017-07-05T08:07:00Z
项目社区:https://github.com/zhuping/mat-autoprefixer

开源协议:MIT License

下载


mat-autoprefixer

Installation

  1. npm install --save-dev mat-autoprefixer

Basic Usage

  1. var mat = require('mat')
  2. var less = require('mat-less')
  3. var autoprefixer = require('mat-autoprefixer')
  4. mat.task('less', function () {
  5. mat.url([/.*\.css/])
  6. .rewrite([
  7. [/\.css/g, '.less']
  8. ])
  9. .use(less({sourceMap: {sourceMapFileInline: true}}))
  10. .use(autoprefixer({
  11. browsers: ['last 2 versions'],
  12. cascade: false
  13. }))
  14. })

Options

See the Autoprefixer options.