From 14f741d4929b5088637e51e001a532af672b69f8 Mon Sep 17 00:00:00 2001 From: "Xin Du (Clark)" Date: Thu, 14 Jan 2021 08:57:48 +0000 Subject: [PATCH] chore: update webpack-dev-middleware to ^4.0.4 [release] (#8640) * chore: update webpack-dev-middleware to ^4.0.4 * fix(build): disable webpack-dev-middle stats printing * use stats options * use stats none Co-authored-by: Pooya Parsa --- packages/webpack/package.json | 2 +- packages/webpack/src/config/base.js | 2 ++ renovate.json | 1 - yarn.lock | 13 +++++++------ 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/webpack/package.json b/packages/webpack/package.json index 9b73b67183..2d1c0dbcb7 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -48,7 +48,7 @@ "vue-template-compiler": "^2.6.12", "webpack": "^4.46.0", "webpack-bundle-analyzer": "^3.9.0", - "webpack-dev-middleware": "4.0.2", + "webpack-dev-middleware": "^4.0.4", "webpack-hot-middleware": "^2.25.0", "webpack-node-externals": "^2.5.2", "webpackbar": "^4.0.0" diff --git a/packages/webpack/src/config/base.js b/packages/webpack/src/config/base.js index f3f880789b..129365b8f4 100644 --- a/packages/webpack/src/config/base.js +++ b/packages/webpack/src/config/base.js @@ -525,6 +525,8 @@ export default class WebpackBaseConfig { rules: this.rules() }, plugins: this.plugins(), + // stats will be printed by webapckbar StateReporter + stats: 'none', ...this.resolve() } diff --git a/renovate.json b/renovate.json index aa0ea0b061..571f2fdc16 100644 --- a/renovate.json +++ b/renovate.json @@ -13,7 +13,6 @@ "postcss-url", "css-loader", "terser-webpack-plugin", - "webpack-dev-middleware", "@types/terser-webpack-plugin" ], "lockFileMaintenance": { diff --git a/yarn.lock b/yarn.lock index b59b17a753..17f00d34cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8931,7 +8931,7 @@ mime-db@1.45.0, "mime-db@>= 1.43.0 < 2": resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.45.0.tgz#cceeda21ccd7c3a745eba2decd55d4b73e7879ea" integrity sha512-CkqLUxUk15hofLoLyljJSrukZi8mAtgd+yE5uO4tqRZsdsAJKv0O+rFMhVDRJgozy+yG6md5KwuXhD4ocIoP+w== -mime-types@^2.1.12, mime-types@^2.1.19, mime-types@^2.1.27, mime-types@~2.1.19, mime-types@~2.1.24: +mime-types@^2.1.12, mime-types@^2.1.19, mime-types@^2.1.27, mime-types@^2.1.28, mime-types@~2.1.19, mime-types@~2.1.24: version "2.1.28" resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.28.tgz#1160c4757eab2c5363888e005273ecf79d2a0ecd" integrity sha512-0TO2yJ5YHYr7M2zzT7gDU1tbwHxEUWBCLt0lscSNpcdAfFyJOVEpRYNS7EXVcTLNj/25QO8gulHC5JtTzSE2UQ== @@ -13531,14 +13531,15 @@ webpack-bundle-analyzer@^3.9.0: opener "^1.5.1" ws "^6.0.0" -webpack-dev-middleware@4.0.2: - version "4.0.2" - resolved "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-4.0.2.tgz#1436ae6cacee78475bd6bc1fbf063dfbfd6e577d" - integrity sha512-xyAICqIugWtT1RRH5aMMmZlPhDhEqPTDL0TWhmMZsuZ+cFlAvRxv4thCbuxdk9MW+OYK4c9BkfmgdQ1/7imkJA== +webpack-dev-middleware@^4.0.4: + version "4.0.4" + resolved "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-4.0.4.tgz#ebe1e4ad2cca8d33389f89b25d2b7ef7d621bc3f" + integrity sha512-6dKe7cufta6TXUwcQqFJNDoGtS3ZdlfQstPJM22V5aNT8qTVd2bWwfEC62vOQOh19eazLDczU+82FgxLHYCmlQ== dependencies: + colorette "^1.2.1" mem "^8.0.0" memfs "^3.2.0" - mime-types "^2.1.27" + mime-types "^2.1.28" range-parser "^1.2.1" schema-utils "^3.0.0"