Utilities to make webpack configuration objects easier to compose and read. Current stable version is 2.3.1. The package provides helper functions like getIfUtils, removeEmpty, and props to conditionally include parts of the config based on environment. It differentiates from plain webpack config by reducing conditional logic and removing empty entries. Last release was in 2016; no further development. Works with webpack 1, 2, and 3.
npm install webpack-config-utilsVerified import paths — ran on the pinned version, not inferred.
Shows how to use getIfUtils and removeEmpty to conditionally configure a webpack config based on NODE_ENV.
Do not use 'here' from this package; use path.resolve instead.
Consider alternatives like webpack-merge or webpack-chain for more comprehensive config management.
Use getIfUtils(env) where env is the object from CLI --env flags.
Manually filter or use a different helper if you need to remove empty strings.
Use const { getIfUtils } = require('webpack-config-utils');Run npm install --save-dev webpack-config-utils
Ensure process.env.NODE_ENV is set or pass a valid string.
No dependency data recorded yet.