cpx icon indicating copy to clipboard operation
cpx copied to clipboard

How to copy only files without the folder structure

Open jaichandra opened this issue 6 years ago • 1 comments

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.

jaichandra avatar Jun 29 '19 21:06 jaichandra

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

towry avatar Jun 18 '20 00:06 towry