Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to copy only files without the folder structure #51

Open
jaichandra opened this issue Jun 29, 2019 · 1 comment
Open

How to copy only files without the folder structure #51

jaichandra opened this issue Jun 29, 2019 · 1 comment

Comments

@jaichandra
Copy link

How can I flatten the folder structure and just copy the files? Similar to what copyfiles library does with -f option (https://www.npmjs.com/package/copyfiles).

I'm using cpx './dist/**/*.umd.js' './dest/assets', but this maintains the tree structure and creates all the subfolders in the destination directory. I need to copy just the files under the root of the destination folder.

@towry
Copy link

towry commented Jun 18, 2020

....
My needs is cpx ./dist/**/*.umd.js should keep dist folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants