Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

webpack-plugin: when stats fail to upload, log error but continue build #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/webpack-plugin/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ class BundleAnalyzer {
})
.then(() => callback())
.catch(error => {
callback(new Error(`Bundle Analyzer - ${error.message}`))
// eslint-disable-next-line no-console
console.error(`Bundle Analyzer - ${error.message}`)
// eslint-disable-next-line no-console
console.info(`Bundle Analyzer - Stats failed to upload. Continuing build...`)

callback()
})
},
)
Expand Down