Skip to content

使用preset在本地调试创建项目,generator.js不起作用 #2172

@HenryWong-fe

Description

@HenryWong-fe

Version

3.0.0

Node and OS info

node 8.11.1 / yarn 1.9.2 / mac 10.13.5

Steps to reproduce

1.根据文档要求,在preset.json同级目录创建Prompts.js 和generator.js
2.使用命令 vue create --preset ./my-preset xxxxx

What is expected?

prompts.js 内容如下:
module.exports = [
{
name: "wechartEnv",
type: "confirm",
message: xxxx
},
{
name: "needLinkme",
type: "confirm",
message: xxxxx
}
];

What is actually happening?

并未出现任何选项,generator.js无设置无效果

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionThis issue is missing a minimal runnable reproduction, provided by the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy