npm grunt-webpack 5.0.0
v5.0.0

latest release: 6.0.0
2 years ago

5.0.0 (2021-11-06)

Bug Fixes

  • Try to load plugin from webpack 5 first (2256754)

Features

  • Allow options to be an array too (a13305d)
  • Require Node.JS version 12.13.0 as minimum (05cd9d2)
  • Support Promises as config (312a1fc)
  • webpack-dev-server: Support only version 4 of webpack-dev-server (4d4bbf0)

BREAKING CHANGES

  • Require Node.JS version 12.13.0 as minimum
  • webpack-dev-server: webpack-dev-server version 4 or newer is now required. Of course only if you use it.
  • webpack-dev-server: The config layout is now the same as if webpack-dev-server is used without grunt. This should make it easier to follow the regular webpack-dev-server documentation about configuration.

Before:

grunt.initConfig({
  webpack-dev-server: {
    myConfig: {
      port: 8080,
      host: "localhost",
      webpack: { /* webpack config here */ }
    },
  },
});

After:

grunt.initConfig({
  webpack-dev-server: {
    myConfig: {
      devServer: {
        port: 8080,
        host: "localhost",
      },
      /* webpack config here */
    },
  },
});
  • webpack-dev-server: port and static.directory are not set by default anymore. Uses the webpack-dev-server default now.
  • webpack-dev-server: the keepalive option does not exist anymore for the webpack-dev-server task. It didn't make sense at all, because if set to false the webpack-dev-server would be killed before it even finished.

Don't miss a new grunt-webpack release

NewReleases is sending notifications on new releases.