Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gucong3000/postcss-unprefix

Clean CSS vendor prefixes from your source.
https://github.com/gucong3000/postcss-unprefix

postcss

Last synced: 18 days ago
JSON representation

Clean CSS vendor prefixes from your source.

Awesome Lists containing this project

README

        

[postcss](https://github.com/postcss/postcss)-unprefix
=====

Unprefixes vendor prefixes in legacy CSS.

[![NPM version](https://img.shields.io/npm/v/postcss-unprefix.svg?style=flat-square)](https://www.npmjs.com/package/postcss-unprefix)
[![Travis](https://img.shields.io/travis/gucong3000/postcss-unprefix.svg)](https://travis-ci.org/gucong3000/postcss-unprefix)
[![Codecov](https://img.shields.io/codecov/c/github/gucong3000/postcss-unprefix.svg)](https://codecov.io/gh/gucong3000/postcss-unprefix)
[![David](https://img.shields.io/david/gucong3000/postcss-unprefix.svg)](https://david-dm.org/gucong3000/postcss-unprefix)

Though, please use [`autoprefixer`](https://github.com/postcss/autoprefixer) as part of your build process to ensure proper browser support.

![Gif Deom](http://ww3.sinaimg.cn/bmiddle/534b48acgw1et7jyprmj3g20b40ciaes.gif)

## Installation

```bash
npm install --save postcss-unprefix
```

## Usage

```javascript
var postcss = require("gulp-html-postcss");
var unprefix = require("postcss-unprefix");
var autoprefixer = require("autoprefixer");

gulp.task("clear-css", function () {
var processors = [
unprefix,
autoprefixer,
];
return gulp.src("./src/**/*.css")
.pipe(postcss(processors))
.pipe(gulp.dest('./dest'));
});
```

#### Input

```css
.flex {
display: -webkit-flex;
display: -moz-flex;
-webkit-flex: 1;
}
```

#### Output

```css
.flex {
display: flex;
flex: 1;
}
```