Skip to content

Releases: webpack-contrib/grunt-webpack

v7.0.0

03 Sep 17:33
Compare
Choose a tag to compare

7.0.0 (2024-09-03)

Features

  • drop support for Node.js 16 (21d90dc)
  • remove special handling of cache configuration (68d94b2)
  • replace lodash with webpack-merge (9ee2cfc)

BREAKING CHANGES

  • Node.js 18.19.0 is the minimum supported version.

v6.0.0

26 Jul 12:46
Compare
Choose a tag to compare

6.0.0 (2023-07-26)

Features

  • drop support for Node.js 12 and 14 (3df5d33)
  • drop support for webpack 4 (34da2e9)

BREAKING CHANGES

  • Node.js 16.13.0 is the minimum supported version now.
  • Only webpack 5 is supported.

v5.0.0

06 Nov 22:42
Compare
Choose a tag to compare

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.

v4.0.3

18 Apr 13:57
Compare
Choose a tag to compare

4.0.3 (2021-04-18)

Bug Fixes

  • Allow webpack 5 in peer dependencies (ac730f1), closes #189
  • Do not provide watch option to webpack to fix deprecation warning (5decc0d), closes #188

v4.0.2

20 Jul 17:00
f1ac3ff
Compare
Choose a tag to compare

4.0.2 (2020-07-20)

Bug Fixes

  • webpack-dev-server: Remove version check for webpack-dev-server (f1ac3ff)

v4.0.1

20 Jul 15:32
f262abf
Compare
Choose a tag to compare

4.0.1 (2020-07-20)

Bug Fixes

  • webpack-dev-server: Fix check for webpack-dev-server version (f262abf)

v4.0.0

20 Jul 14:47
Compare
Choose a tag to compare

4.0.0 (2020-07-20)

Bug Fixes

  • deps: Upgrade dependencies (f6ca1c3)
  • Drop support for node < 6.11.5 and webpack < 4 (36aba57)
  • Ensure correct version of webpack-dev-server is installed (e40dbe9)
  • Read raw config in tasks to avoid circular dependency (570f378)
  • remove adding of HMR plugin, since addDevServerEntrypoints already does it (4b2fbf8)
  • Remove handling of templates in Plugins (e2cf0cd)
  • Update lodash (5836231)
  • Require node 10 (3b218ab)

Features

  • Add support for webpack 5 (920c6d9)

BREAKING CHANGES

  • Ensure you use node 10.13.0 or newer before upgrading to this grunt-webpack version
  • Requires webpack-dev-server 3.2.0 or newer
  • Grunt templates will not be evaluated in Plugins anymore. Use lazy config loading instead.

v3.1.3

02 Sep 09:24
v3.1.3
38175b8
Compare
Choose a tag to compare

Bug Fixes

  • dev-server: compatibility with webpack-dev-server 3.1.7+ (#166) (218f46b)
  • Correctly create a function wrapper for plugins to be able to replace grunt templates (a1ee19e), closes #163
  • Display proper error when no config was found. (6326a10), closes #164

3.0.2

11 Jul 13:05
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Ensure that the cache default function gets correctly executed in watch mode (#150) (Daniel Tschinder)
  • Fix hanging of grunt when using options key (#149) (Daniel Tschinder)

3.0.1

10 Jul 09:33
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Only process plugins directly related to webpack, not loader plugins (#145) (Marek Suscak)
  • Allow webpack 3 as peer, use webpack 3 as devDep (#144) (Suneil Nyamathi)
  • fix multi target for webpack-dev-server task (#143) (Remi Liu)
  • fix multi target in webpack task (#140) (Remi Liu)