Skip to content

Adding webpack plugin in chainWebpack mode failed #1729

@MarvinXu

Description

@MarvinXu

Version

3.0.0-rc.3

Reproduction link

MarvinXu/vue-cli-mpa-test@c591575

Steps to reproduce

https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-plugin

module.exports = {
  chainWebpack: config => {
    config
      .plugin('html')
      .tap(args => {
        args[0].template = '/Users/username/proj/app/templates/index.html'
        return args
      })
  }
}

npm run serve

What is expected?

no error

What is actually happening?

TypeError: Cannot read property '__expression' of undefined

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions