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: [],
watch: [],
devMiddleware: {},
devMiddleware: {
// stats will be printed by webapckbar StateReporter
stats: 'none'
},
hotMiddleware: {},
stats: {

View File

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

View File

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

View File

@ -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.4",
"webpack-dev-middleware": "^4.1.0",
"webpack-hot-middleware": "^2.25.0",
"webpack-node-externals": "^2.5.2",
"webpackbar": "^4.0.0"

View File

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

View File

@ -13537,10 +13537,10 @@ webpack-bundle-analyzer@^3.9.0:
opener "^1.5.1"
ws "^6.0.0"
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==
webpack-dev-middleware@^4.1.0:
version "4.1.0"
resolved "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-4.1.0.tgz#f0c1f12ff4cd855b3b5eec89ee0f69bcc5336364"
integrity sha512-mpa/FY+DiBu5+r5JUIyTCYWRfkWgyA3/OOE9lwfzV9S70A4vJYLsVRKj5rMFEsezBroy2FmPyQ8oBRVW8QmK1A==
dependencies:
colorette "^1.2.1"
mem "^8.0.0"