webpack-shell-plugin
Run shell commands before and after webpack builds
This package has a good security score with no known vulnerabilities.
Community Reviews
Outdated plugin with basic functionality but abandoned maintenance
However, the package hasn't been updated since 2016, which creates real problems. It doesn't support webpack 4+ properly without workarounds, and webpack 5 can cause silent failures or deprecation warnings. Error messages are sparse—when a shell command fails, you often get minimal feedback about what went wrong. Debugging requires adding your own error handling within your scripts.
The lack of community support is apparent. GitHub issues go unanswered, and Stack Overflow questions are sparse. You're essentially on your own if you hit problems. Consider webpack-shell-plugin-next or webpack-cli's built-in hooks instead—they offer similar functionality with active maintenance and better webpack compatibility.
Best for: Legacy webpack 3 projects needing simple shell command execution during builds.
Avoid if: You're using webpack 4+ or need reliable error handling and ongoing maintenance support.
Abandoned package with critical security implications for shell execution
The package hasn't been updated since 2016, meaning it predates modern webpack versions (currently at v5) and lacks any security patches or improvements from the last 7+ years. While it technically still works with older webpack setups, the lack of maintenance is a massive red flag for production environments. Error handling is minimal - failed commands may or may not halt your build depending on configuration, and error output doesn't sanitize potentially sensitive information from command execution.
For shell automation in builds, modern alternatives like webpack's built-in hooks or webpack-shell-plugin-next (a maintained fork) provide better safety controls and active maintenance. The risk-reward ratio here is terrible for security-conscious teams.
Best for: Legacy projects already using it where migrating away is infeasible and commands are fully hardcoded.
Avoid if: You care about supply chain security, need modern webpack compatibility, or have any dynamic command generation.
Outdated plugin with no error handling and unpredictable execution behavior
The lack of observability is painful in production environments. You get minimal logging about what's executing, no hooks for monitoring command duration, and no way to gracefully handle command failures without custom wrapper scripts. Resource management is absent - the plugin spawns processes but doesn't manage them, leading to potential zombie processes if webpack exits unexpectedly.
Most critically, this package hasn't been updated since 2016 and doesn't support webpack 4+ properly without workarounds. The API is inflexible - you can't configure retry behavior, timeouts, or execution environments. For production use, webpack-shell-plugin-next or custom webpack hooks are significantly more reliable.
Best for: Legacy webpack 2-3 projects where you need extremely simple, fire-and-forget shell command execution.
Avoid if: You need reliability, error handling, modern webpack support, or any production-grade observability and resource management.
Sign in to write a review
Sign In