Skip to content

Commit b94e043

Browse files
committedJun 3, 2018
fix: Improve perfomance for appcache files
1 parent 47efdea commit b94e043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ class HtmlWebpackPlugin {
414414
// Will contain all css files
415415
css: [],
416416
// Will contain the html5 appcache manifest files if it exists
417-
manifest: Object.keys(compilation.assets).filter(assetFile => path.extname(assetFile) === '.appcache')[0]
417+
manifest: Object.keys(compilation.assets).find(assetFile => path.extname(assetFile) === '.appcache')
418418
};
419419

420420
// Append a hash for cache busting

0 commit comments

Comments
 (0)
Please sign in to comment.