Skip to content

How to apply filter on files only? #138

@wildan-m

Description

@wildan-m

Hi,

I have a folder containing js libraries.

source\libs\autoComplete.js\js\autoComplete.min.js
source\libs\autoComplete.js\css\autoComplete.css

How could I filter the files without filtering the folder name?

I've tried this:

ncp' 'source/libs/' 'build/source/libs' --filter="^(.(?!.*\.js$|.*\.json))*$"

But it also filters the folder. The folder source\libs\autoComplete.js\ does not exist in the destination.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions