When executing mix.copy() on a directory, only files are copied.
Reading the documentation one would expect that the whole directory structure is copied, but I only get the files without directories.
All the files, including those in sub-directories, are copied into the target directory.
// webpack.mix.js
mix.copy(<source directory>, <target directory>);
// console
npm run dev
This should be filed in the Laravel Mix repo.
But the answer is because Mix flattens the directory structure when copying. You can disabled this by passing false as the third argument (flatten = false) to the mix.copy() method.
Most helpful comment
This should be filed in the Laravel Mix repo.
But the answer is because Mix flattens the directory structure when copying. You can disabled this by passing
falseas the third argument (flatten = false) to themix.copy()method.