fix(webpack): disable stats output from webpack-dev-middleware (#8651)

This commit is contained in:
Xin Du (Clark) 2021-01-17 11:05:20 +00:00 committed by GitHub
parent 80af61c09e
commit b0e6277615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 11 deletions

View File

@ -103,7 +103,10 @@ export default () => ({
templates: [], templates: [],
watch: [], watch: [],
devMiddleware: {}, devMiddleware: {
// stats will be printed by webapckbar StateReporter
stats: 'none'
},
hotMiddleware: {}, hotMiddleware: {},
stats: { stats: {

View File

@ -38,7 +38,9 @@ Object {
"cache": false, "cache": false,
"corejs": "auto", "corejs": "auto",
"cssSourceMap": false, "cssSourceMap": false,
"devMiddleware": Object {}, "devMiddleware": Object {
"stats": "none",
},
"extractCSS": false, "extractCSS": false,
"filenames": Object { "filenames": Object {
"app": [Function], "app": [Function],

View File

@ -18,7 +18,9 @@ Object {
"cache": false, "cache": false,
"corejs": "auto", "corejs": "auto",
"cssSourceMap": undefined, "cssSourceMap": undefined,
"devMiddleware": Object {}, "devMiddleware": Object {
"stats": "none",
},
"extractCSS": false, "extractCSS": false,
"filenames": Object { "filenames": Object {
"app": [Function], "app": [Function],
@ -402,7 +404,9 @@ Object {
"cache": false, "cache": false,
"corejs": "auto", "corejs": "auto",
"cssSourceMap": undefined, "cssSourceMap": undefined,
"devMiddleware": Object {}, "devMiddleware": Object {
"stats": "none",
},
"extractCSS": false, "extractCSS": false,
"filenames": Object { "filenames": Object {
"app": [Function], "app": [Function],

View File

@ -48,7 +48,7 @@
"vue-template-compiler": "^2.6.12", "vue-template-compiler": "^2.6.12",
"webpack": "^4.46.0", "webpack": "^4.46.0",
"webpack-bundle-analyzer": "^3.9.0", "webpack-bundle-analyzer": "^3.9.0",
"webpack-dev-middleware": "^4.0.4", "webpack-dev-middleware": "^4.1.0",
"webpack-hot-middleware": "^2.25.0", "webpack-hot-middleware": "^2.25.0",
"webpack-node-externals": "^2.5.2", "webpack-node-externals": "^2.5.2",
"webpackbar": "^4.0.0" "webpackbar": "^4.0.0"

View File

@ -525,8 +525,6 @@ export default class WebpackBaseConfig {
rules: this.rules() rules: this.rules()
}, },
plugins: this.plugins(), plugins: this.plugins(),
// stats will be printed by webapckbar StateReporter
stats: 'none',
...this.resolve() ...this.resolve()
} }

View File

@ -13537,10 +13537,10 @@ webpack-bundle-analyzer@^3.9.0:
opener "^1.5.1" opener "^1.5.1"
ws "^6.0.0" ws "^6.0.0"
webpack-dev-middleware@^4.0.4: webpack-dev-middleware@^4.1.0:
version "4.0.4" version "4.1.0"
resolved "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-4.0.4.tgz#ebe1e4ad2cca8d33389f89b25d2b7ef7d621bc3f" resolved "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-4.1.0.tgz#f0c1f12ff4cd855b3b5eec89ee0f69bcc5336364"
integrity sha512-6dKe7cufta6TXUwcQqFJNDoGtS3ZdlfQstPJM22V5aNT8qTVd2bWwfEC62vOQOh19eazLDczU+82FgxLHYCmlQ== integrity sha512-mpa/FY+DiBu5+r5JUIyTCYWRfkWgyA3/OOE9lwfzV9S70A4vJYLsVRKj5rMFEsezBroy2FmPyQ8oBRVW8QmK1A==
dependencies: dependencies:
colorette "^1.2.1" colorette "^1.2.1"
mem "^8.0.0" mem "^8.0.0"