# gulp-remove-require

> Gulp plugin to filter out webpack style sass requires (or whatever)

Latest version **1.0.1** (published 2015-07-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-remove-require
pnpm add gulp-remove-require
yarn add gulp-remove-require
bun add gulp-remove-require
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-07-15 |
| First published | 2015-07-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | adjavaherian |
| Maintainers | adjavaherian |
| Keywords | gulp, require, sass, filter, webpack, remove |

## Links

- npm: https://www.npmjs.com/package/gulp-remove-require
- Repository: https://github.com/adjavaherian/gulp-remove-require
- Issues: https://github.com/adjavaherian/gulp-remove-require/issues
- npm.io page: https://npm.io/package/gulp-remove-require

## Dependencies (4)

- [gulp](https://npm.io/package/gulp.md) ^3.9.0
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [gulp-sass](https://npm.io/package/gulp-sass.md) ^2.0.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.6

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-07-15
- 1.0.0 — 2015-07-15

## README

# gulp-remove-require
Gulp plugin to filter out webpack style sass requires (or any atypical node-style requires).

Useful when your project is doing a bunch of these
[Webpack css](http://webpack.github.io/docs/stylesheets.html)

There are only two options:

```javascript

{
    'testString': 'scss', //the token to look for in require path or extension
    'removeLine': true //remove it or ignore it
}

```

Use like so...

```javascript

var gulp        = require('gulp');
var removeRequire = require('gulp-remove-require');

gulp.task('remove-sass-requires', function() {
    return gulp.src(['nastyHobbitsess.js'])
        .pipe(removeRequire({
            testString: 'scss',
            removeLine: true
        }))
        .pipe(dest('/tmp/niceHobbitsess.js'));
});

```

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