Webpack 4 is ready in git and will be uploaded to experimental soon.

Major changes

  1. Now entry, output and mode options are mandatory

  2. production and development are new modes and each has its on default options. production mode does minify by default.

  3. Debian package currently support only development mode. production mode requires migrating to terser-webpack-plugin as uglifyjs-webpack-plugin is broken currently (uglify-es is not packaged and there is an API change in terser, uglifyOptions is changed to terserOptions).

Examples

Check node-d3-request (commit)