Skip to content

Commit b653641

Browse files
feat: added error code to chunk load Error (#347)
1 parent 7d1e0ca commit b653641

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ class MiniCssExtractPlugin {
359359
Template.indent([
360360
'var request = event && event.target && event.target.src || fullhref;',
361361
'var err = new Error("Loading CSS chunk " + chunkId + " failed.\\n(" + request + ")");',
362+
'err.code = "CSS_CHUNK_LOAD_FAILED";',
362363
'err.request = request;',
363364
'delete installedCssChunks[chunkId]',
364365
'linkTag.parentNode.removeChild(linkTag)',

0 commit comments

Comments
 (0)