# gulp-css-prefix

> Minify css with clean-css.

Latest version **0.1.0** (published 2015-03-27) · 0 weekly downloads

## Install

```sh
npm install gulp-css-prefix
pnpm add gulp-css-prefix
yarn add gulp-css-prefix
bun add gulp-css-prefix
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-03-27 |
| First published | 2015-03-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | pixnbits |
| Keywords | gulp, gulpplugin, css, prefix, css-prefix |

## Links

- npm: https://www.npmjs.com/package/gulp-css-prefix
- Repository: https://github.com/pixnbits/gulp-css-prefix
- Issues: https://github.com/pixnbits/gulp-css-prefix/issues
- npm.io page: https://npm.io/package/gulp-css-prefix

## Dependencies (4)

- [through2](https://npm.io/package/through2.md) ^0.6.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.4
- [css-prefix](https://npm.io/package/css-prefix.md) 0.0.2
- [vinyl-bufferstream](https://npm.io/package/vinyl-bufferstream.md) ^1.0.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-03-27

## README

# gulp-css-prefix

Simple gulp plugin/wrapper around [css-prefix](https://github.com/substack/css-prefix)

## Installation

```sh
npm install --save-dev gulp-css-prefix
```

## Usage

```js
var gulp = require('gulp'),
cssPrefix = require('gulp-css-prefix');

gulp.task('build-css', function() {
  return gulp.src('./static/css/*.css')
    .pipe(cssPrefix('RAWR-'))
    .pipe(gulp.dest('./dist/'))
});
```
### Options

See [css-prefix options](https://github.com/substack/css-prefix#insertprefixopts-src) as the record of truth.

For convenience:

* `prefix` - Insert this string before every class and id in the css source string src
* `elementClass` - add this class to all element identifiers
* `parentClass` - add an ancestor class to every rule
* `parentId` - add an ancestor id to every rule (not yet, [hopefully in v0.0.3](https://github.com/substack/css-prefix/pull/3))

---
_Source: https://npm.io/package/gulp-css-prefix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
