Skip to content

Commit

Permalink
fix: Improve perfomance for appcache files
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Jun 3, 2018
1 parent 47efdea commit b94e043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -414,7 +414,7 @@ class HtmlWebpackPlugin {
// Will contain all css files
css: [],
// Will contain the html5 appcache manifest files if it exists
manifest: Object.keys(compilation.assets).filter(assetFile => path.extname(assetFile) === '.appcache')[0]
manifest: Object.keys(compilation.assets).find(assetFile => path.extname(assetFile) === '.appcache')
};

// Append a hash for cache busting
Expand Down

0 comments on commit b94e043

Please sign in to comment.