Packages

webpack

5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed

Your version

2.3.0

21 Mar 2017Where it was published

2.7.0 is the newest release of 2.x.

In short

13 new9 fixed

Release note

Features

  • Add extensions option to DllReferencePlugin

  • Add warningsFilter to UglifyJsPlugin to hide warnings selectively

  • Add extractComments to UglifyJsPlugin to move kept comments into separate file (i. e. LICENSE file)

  • Validate relative and absolute paths in configuration

  • Validate stats options

  • Allow to match on compiler (name in configuration) in rules

    • i. e. allows to specify different rules for extract-text-webpack-plugin or html-webpack-plugin

  • Allow to pass multiple entries via CLI

  • Performance improvements

  • CommonsChunkPlugin give errors on incorrect options

  • Add module.strictExportPresence to make missing export an error instead of warning

  • Compiler emits watch-close event when the watcher is closed

  • Allow additional compress options in UglifyJsPlugin

  • Empty chunk numbers are not flags in every chunk, this improves caching invalidation

Bugfixes

  • OccurrenceOrderPlugin now counts occurrences correctly

  • Fix cheap-source-maps when combined with ES Modules (lines were offset)

  • Watcher now detects file deleting correctly

  • Resolve output path if relative output path is given via CLI

  • Handle stack traces in errors correctly

  • Some usages of System now generate valid code i. e. System.global

  • Dynamic property names are now parsed and can contain webpack stuff (i. e. imports)

  • Empty enviroment variables are now supported in the EnvironmentPlugin

  • (Maybe) Fixes chunk loading in IE when script is cached

Notes

The validation now fails when passing absolute paths with lowercase drive letter on windows.
(i. e. c:\work\stuff instead of C:\work\stuff)

Lowercase drive letters will cause weird errors (node.js behavior is inconsistent about drive letter casing) in some cases.

So please fix the paths in your shell resp. your tooling and always call webpack with uppercase drive letter. Don't use lowercase drive letters.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.