Joschko's avatar

Copy folder structure with Laravel Mix (Laravel 5.4)

Is it possible to copy a complete folder structure with Laravel Mix?

When using

mix.copy('./sourcepath/', './public/static');

all files are copied to "public/static" without their folder structure (flat structure / no subfolders). Is it somehow possible (without copy them one by one) to copy a complete folder structure including all files?

0 likes
5 replies
dhonions's avatar

default should be flatten = false in my opinion.

1 like

Please or to participate in this conversation.