Skip to content

Commit 6c9ffdc

Browse files
committed
Fixes excessive progress logs.
1 parent 7b50547 commit 6c9ffdc

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"optimize": "node the-magic/build/optimize-images.js",
2828
"time": "node the-magic/build/get-time.js",
2929
"start": "npm run gulp && node the-magic/build/server",
30-
"build:client": "cross-env NODE_ENV=production webpack --config the-magic/build/webpack.client.config.js --progress --hide-modules",
31-
"build:server": "cross-env NODE_ENV=production webpack --config the-magic/build/webpack.server.config.js --progress --hide-modules",
30+
"build:client": "cross-env NODE_ENV=production webpack --config the-magic/build/webpack.client.config.js --no-info --hide-modules",
31+
"build:server": "cross-env NODE_ENV=production webpack --config the-magic/build/webpack.server.config.js --no-info --hide-modules",
3232
"build": "rimraf dist && npm run gulp && npm run build:client && npm run build:server && cross-env NODE_ENV=production node the-magic/build/build.js"
3333
},
3434
"dependencies": {

the-magic/build/webpack.base.config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ module.exports = {
142142
new FriendlyErrorsPlugin({
143143
clearConsole: true
144144
}),
145-
new ProgressBarPlugin({
146-
format: " [:bar] " + ":percent".bold + " (:msg)"
147-
}),
148145
...isProd ? [
149146
new CompressionWebpackPlugin({
150147
filename: "[path].gz[query]",
@@ -153,6 +150,10 @@ module.exports = {
153150
threshold: 10240,
154151
minRatio: 0.8
155152
}),
156-
] : []
153+
] : [
154+
new ProgressBarPlugin({
155+
format: " [:bar] " + ":percent".bold + " (:msg)"
156+
}),
157+
]
157158
]
158159
}

0 commit comments

Comments
 (0)