Skip to content

Commit

Permalink
fix($cssChunksMap): fix edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
faceyspacey committed Jul 4, 2017
1 parent c56a51c commit 2a0a311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flushChunks.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const createCssHash = (
publicPath: string
): CssChunksHash =>
Object.keys(assetsByChunkName).reduce((hash, name) => {
if (!assetsByChunkName[name]) return hash
if (!assetsByChunkName[name] || !assetsByChunkName[name].find) return hash
const file = assetsByChunkName[name].find(file => file.endsWith('.css'))
if (file) hash[name] = `${publicPath}${file}`
return hash
Expand Down

0 comments on commit 2a0a311

Please sign in to comment.