You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a directory with both .svg and other files. I would like to copy the files with site.copy("./assets"), but then the .svg files inside are copied without going through the plugin. If site.copy() would support globs, I could do site.copy("./assets/**/*.!(svg)") to copy all but the .svg files in the directory.
If this gets implemented, maybe site.ignore() should support globs too.
The text was updated successfully, but these errors were encountered:
I didn't implement glob for performance reasons. Ignoring a directory is easier and faster because the source scanner stops when it reaches to this directory so it doesn't continue scanning and evaluating the files inside this directory (think, for example in a node_modules folder).
Maybe, a way to do it without affecting to performance could be by separating the glob patterns and folders names in two different Map, but I haven't done much research.
I have a directory with both
.svg
and other files. I would like to copy the files withsite.copy("./assets")
, but then the.svg
files inside are copied without going through the plugin. Ifsite.copy()
would support globs, I could dosite.copy("./assets/**/*.!(svg)")
to copy all but the.svg
files in the directory.If this gets implemented, maybe
site.ignore()
should support globs too.The text was updated successfully, but these errors were encountered: