Skip to content

Commit d450a9f

Browse files
committed
fix (theme): replace webpack image sizes plugin log
1 parent 353d990 commit d450a9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config/webpack-image-sizes-plugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,14 @@ class WebpackImageSizesPlugin {
8484
// Assumes that no modified files means the start of the build (yarn start || yarn build)
8585
if (WebpackImageSizesPlugin.hasBeenBuiltOnce && compilation.modifiedFiles) {
8686
for (const filePath of compilation.modifiedFiles) {
87-
console.log(this.options.confImgPath, filePath, filePath.includes(this.options.confImgPath))
8887
if (filePath.includes(this.options.confImgPath)) {
8988
hasChanges = true
9089
}
9190
}
9291
}
9392

9493
if (WebpackImageSizesPlugin.hasBeenBuiltOnce && !hasChanges) {
95-
console.log(`✅ No changes detected in ${this.options.confImgPath}`)
94+
this.log('log', `✅ No changes detected in ${this.options.confImgPath}`)
9695

9796
if (callback) {
9897
callback()

0 commit comments

Comments
 (0)