Skip to content

Extending index.html will not populate the template again. #1820

Closed
@serkanyersen

Description

@serkanyersen

Version

3.0.0-rc.3

Reproduction link

https://gist.github.com/serkanyersen/436fa7fb2567885f91cb696eb3faf835

Steps to reproduce

in your plugin/generator create public/index.html and extend it using

---
extend: '@vue/cli-service/generator/template/public/index.html'
replace:
  - !!js/regexp /<div id="app"></div>/
---
<%# REPLACE %>
<div id="app"></div>
<script src="/api/globals"></script>
<%# END_REPLACE %>

Update your plugin on the project and invoke it again. you'll see the places where <%= rootOptions.projectName %> was mentioned are not populated now.

What is expected?

vue-cli remembers previous options

What is actually happening?

vue-cli forgets initial prompt selections

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions