Skip to content

(建议) 能否增加ignore配置 #578

@UphkcRNqmafQWcSSSSSS

Description

@UphkcRNqmafQWcSSSSSS

比如
/components/button/index.vue
/components/button/components/loading.vue

"/components/button/components/loading.vue"是button子组件并不想暴露给用户

https://github.com/antfu/unplugin-vue-components/blob/05196ec4d82566058585234dcad00c90787a490e/src/core/fs/glob.ts#L12

// 能否增加一个配置,方便过滤不需要的组件呢?
// ignore: ['node_modules', '**/components']
const files = fg.sync(ctx.options.globs, {
    ignore: ctx.options.ignore || ['node_modules'],
    onlyFiles: true,
    cwd: root,
    absolute: true,
  })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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