Registry /
devops / disable-output-webpack-plugin
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
DisableOutputWebpackPlugin
✓ const DisableOutputWebpackPlugin = require('disable-output-webpack-plugin')
✗ import DisableOutputWebpackPlugin from 'disable-output-webpack-plugin'
Package does not export ES modules correctly; use CommonJS require.
default
✓ const DisableOutputWebpackPlugin = require('disable-output-webpack-plugin')
✗ const { DisableOutputWebpackPlugin } = require('disable-output-webpack-plugin')
The package exports a single constructor function, not a named export.
new
✓ new DisableOutputWebpackPlugin()
✗ new DisableOutputWebpackPlugin({})
The constructor takes no arguments; passing options will be ignored.
Basic setup to disable webpack output file writing. Note: output.path is still needed but files are not saved.
// webpack.config.js
const DisableOutputWebpackPlugin = require('disable-output-webpack-plugin');
module.exports = {
entry: './src/index.js',
output: {
path: '/dev/null', // still required but output won't be written
filename: 'bundle.js'
},
plugins: [
new DisableOutputWebpackPlugin()
]
};
Errors
Common errors & fixes
TypeError: DisableOutputWebpackPlugin is not a constructor
Using ES module import syntax (`import DisableOutputWebpackPlugin from ...`) which doesn't resolve to the CommonJS export correctly.
fixUse `const DisableOutputWebpackPlugin = require('disable-output-webpack-plugin')` instead of `import`. Module not found: Error: Can't resolve 'disable-output-webpack-plugin'
Package not installed or missing from node_modules.
fixRun `npm install --save-dev disable-output-webpack-plugin`.
Error: You forgot to add 'mini-css-extract-plugin' plugin
Not related to this plugin; it's a common confusion with other plugins.
fixEnsure other plugins like MiniCssExtractPlugin are properly configured if used.
Audit
Dependencies
No dependency data recorded yet.