Home

Issue: 1461

webpackChunkName get undefined

[issue link]
  1. set nuxt.config.js

filenames: { chunk: '[name].[chunkhash].js' }

  1. my directory like this picture

    2017-08-24 3 35 06
  2. npm run build

    then i got an undefined.[chunkhash].js file in .nuxt/dist/pages directory

    i find it in Generating routes

    2017-08-24 3 38 38

    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

This bug report is available on Nuxt.js community (#c1300)