Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ifuyun/disable-output-plugin

Disables saving output files in Webpack v5.x+
https://github.com/ifuyun/disable-output-plugin

Last synced: 10 days ago
JSON representation

Disables saving output files in Webpack v5.x+

Awesome Lists containing this project

README

        

# disable-output-plugin
Disables saving output files in Webpack v5.x+.

## install

```sh
npm i -D disable-output-plugin
```

## use

### preventing output for only module file

```javascript
import * as DisableOutputPlugin from 'disable-output-plugin';

module.exports = {
plugins: [
// 'index.js' is the output filename
new DisableOutputPlugin({ test: /^index\.js$/i })
]
}
```

### preventing output for some files

```javascript
module.exports = {
plugins: [
new DisableOutputPlugin({ test: /\.js$/i })
]
}
```