https://github.com/gucong3000/postcss-unprefix
Clean CSS vendor prefixes from your source.
https://github.com/gucong3000/postcss-unprefix
postcss
Last synced: 11 months ago
JSON representation
Clean CSS vendor prefixes from your source.
- Host: GitHub
- URL: https://github.com/gucong3000/postcss-unprefix
- Owner: gucong3000
- License: mit
- Created: 2016-04-29T01:33:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T13:45:26.000Z (about 6 years ago)
- Last Synced: 2025-07-03T07:07:02.657Z (12 months ago)
- Topics: postcss
- Language: JavaScript
- Size: 238 KB
- Stars: 35
- Watchers: 1
- Forks: 4
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[postcss](https://github.com/postcss/postcss)-unprefix
=====
Unprefixes vendor prefixes in legacy CSS.
[](https://www.npmjs.com/package/postcss-unprefix)
[](https://travis-ci.org/gucong3000/postcss-unprefix)
[](https://codecov.io/gh/gucong3000/postcss-unprefix)
[](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.

## 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;
}
```