disable-output-plugin
v1.0.2
Published
Disables saving output files in Webpack
Downloads
10
Maintainers
Readme
disable-output-plugin
Disables saving output files in Webpack v5.x+.
install
npm i -D disable-output-plugin
use
preventing output for only module file
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
module.exports = {
plugins: [
new DisableOutputPlugin({ test: /\.js$/i })
]
}