Skip to content

Commit

Permalink
feat: added error code to chunk load Error (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyPanchenkoWeWork authored and evilebottnawi committed Feb 5, 2019
1 parent 7d1e0ca commit b653641
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Expand Up @@ -359,6 +359,7 @@ class MiniCssExtractPlugin {
Template.indent([
'var request = event && event.target && event.target.src || fullhref;',
'var err = new Error("Loading CSS chunk " + chunkId + " failed.\\n(" + request + ")");',
'err.code = "CSS_CHUNK_LOAD_FAILED";',
'err.request = request;',
'delete installedCssChunks[chunkId]',
'linkTag.parentNode.removeChild(linkTag)',
Expand Down

0 comments on commit b653641

Please sign in to comment.