webpackChunkName get undefined
[issue link]- set nuxt.config.js
filenames: { chunk: '[name].[chunkhash].js' }
-
my directory like this picture
-
npm run buildthen i got an undefined.[chunkhash].js file in .nuxt/dist/pages directory
i find it in Generating routes
is a bug?
in code source /lib/common/utils.js .lines 189, here is
route.name = route.name.replace(/-index$/, '')why do this?
my english is poor,sorry