1.0.2 • Published 1 year ago

disable-output-plugin v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 })
  ]
}
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago