# gulp-css-class-prefix

> Add a class prefix to further sandbox CSS styling for third-party imports.

Latest version **0.0.1** (published 2015-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-css-class-prefix
pnpm add gulp-css-class-prefix
yarn add gulp-css-class-prefix
bun add gulp-css-class-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.0.1 |
| Published | 2015-10-22 |
| First published | 2015-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | fatsheepcn |
| Maintainers | fatsheepcn |
| Keywords | gulp, gulpplugin, prefix, class, css, rework |

## Links

- npm: https://www.npmjs.com/package/gulp-css-class-prefix
- npm.io page: https://npm.io/package/gulp-css-class-prefix

## Dependencies (3)

- [rework](https://npm.io/package/rework.md) ^1.0.1
- [through2](https://npm.io/package/through2.md) ^0.6.3
- [rework-css-prefix](https://npm.io/package/rework-css-prefix.md) ^0.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.0.1 (latest) — 2015-10-22

## README

# gulp-css-class-prefix

Gulp plugin to prefix classes in a CSS file.

## Installation

```
npm install --save gulp-css-class-prefix
```

## Usage

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

gulp.task('prefix', function() {
  return gulp.src('my-file.css')
    .pipe(cssClassPrefix('my-class-prefix-'))
    .pipe(gulp.dest('dist'));
});

gulp.task('default', ['prefix']);
```

### Using the `ignored` option:

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

gulp.task('prefix', function() {
  return gulp.src('my-file.css')
  .pipe(cssClassPrefix('my-class-prefix-', { ignored: [/\.ng-/, '.some-class'] }))
  .pipe(gulp.dest('dist'));
});

gulp.task('default', ['prefix']);
```

## License

MIT

## Acknowledgements

Gulp wrapper for <https://github.com/johnotander/rework-class-prefix>.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

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