Skip to content

Commit

Permalink
fix(webpack): fallback for empty chunk names
Browse files Browse the repository at this point in the history
fixes nuxt#7665
  • Loading branch information
simllll committed Jul 3, 2020
1 parent e3821ba commit e4b6598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack/src/config/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default class WebpackClientConfig extends WebpackBaseConfig {
.map(c => c.name)
.sort()
.map(name => name.replace(/[/\\]/g, '.').replace(/_/g, '').replace('pages.', ''))
.join('~')
.join('~') || 'default'

if (compactName.length > 32) {
compactName = hash(compactName)
Expand Down

0 comments on commit e4b6598

Please sign in to comment.