WordPress.org

Make WordPress Core

Changeset 44111 for trunk/package.json


Ignore:
Timestamp:
12/13/2018 11:04:35 AM (3 years ago)
Author:
atimmer
Message:

Build tools: Upgrade webpack to version 4.

  • Minification is done by uglify, so disable that in the media build.
  • The webpack boilerplate has changed, which explains the changes in the build files.
  • ModuleConcatenationPlugin is enable by default for production builds so we don't have to specify that ourselves.

Merge notes: In trunk uglify isn't run on the media files after webpack, so webpack does need to do that. Newer webpack versions use terser-webpack-plugin as the default minification. Use the uglifyjs-webpack-plugin plugin to maintain the same behavior as before. We can look into terser as a minifier later.

Merges [43688] to trunk.
See #45065.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/package.json

    r43977 r44111  
    3838        "grunt-rtlcss": "~2.0.1",
    3939        "grunt-sass": "~2.0.0",
    40         "grunt-webpack": "^3.0.2",
     40        "grunt-webpack": "^3.1.3",
    4141        "ink-docstrap": "^1.3.0",
    4242        "jquery-migrate": "1.4.1",
    4343        "matchdep": "~2.0.0",
    44         "webpack": "^3.6.0",
    45         "webpack-dev-server": "^2.9.1"
     44        "uglifyjs-webpack-plugin": "^2.0.1",
     45        "webpack": "^4.20.2",
     46        "webpack-dev-server": "^3.1.9"
    4647    },
    4748    "dependencies": {
Note: See TracChangeset for help on using the changeset viewer.