Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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+
- Host: GitHub
- URL: https://github.com/ifuyun/disable-output-plugin
- Owner: ifuyun
- License: mit
- Created: 2024-06-08T13:17:54.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-06-09T08:45:53.000Z (5 months ago)
- Last Synced: 2024-11-03T17:43:37.448Z (15 days ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 })
]
}
```