You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/webpack/entry-files-manifest-plugin.js
+23-6Lines changed: 23 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -21,19 +21,19 @@ function EntryFilesManifestPlugin(manifestFilename, entryNamesToSkip) {
21
21
* @param {Entrypoint} entryPoint
22
22
* @returns {object}
23
23
*/
24
-
functionextractFiles(entryPoint){
24
+
functionextractChunkIds(entryPoint){
25
25
constfiles={
26
-
jsFiles: [],
27
-
cssFiles: [],
26
+
jsChunkIds: [],
27
+
cssChunkIds: [],
28
28
};
29
29
30
30
for(letchunkofentryPoint.chunks){
31
31
for(letfilenameofchunk.files){
32
32
if(/\.js$/.test(filename)){
33
33
// use the chunk id because we do not want the versioned filename
34
-
files.jsFiles.push(`${chunk.id}.js`);
34
+
files.jsChunkIds.push(chunk.id);
35
35
}elseif(/\.css$/.test(filename)){
36
-
files.cssFiles.push(`${chunk.id}.css`);
36
+
files.cssChunkIds.push(chunk.id);
37
37
}else{
38
38
logger.debug(`Unable to determine file type for entry ${filename}. This is possibly a bug, but will not impact your setup unless you use the entrypoints.json file. To be super awesome, please report this as an issue.`);
39
39
}
@@ -43,6 +43,16 @@ function extractFiles(entryPoint) {
0 commit comments