Skip to content

It always uses index-default.html when give template property #2697

Closed
@fengxinming

Description

@fengxinming

Version

3.0.4

Reproduction link

https://github.com/fengxinming/vuecli3-demo

Node and OS info

node v8.11.1, npm 6.4.1, macOS

Steps to reproduce

npm i
npm run build

What is expected?

public/index.pug is compiled to dist/index.html

What is actually happening?

index-default.html is compiled to dist/index.html


190 // resolve page index template
191 const hasDedicatedTemplate = fs.existsSync(api.resolve(template))
192 if (hasDedicatedTemplate) {
193 publicCopyIgnore.push(template)
194 }

if I use pug template as property template, then hasDedicatedTemplate still can be false

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions