Skip to content

Commit

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

Please sign in to comment.