1
0
elk/patches/nitropack@1.0.0.patch

13 lines
619 B
Diff
Raw Normal View History

2023-01-09 20:12:43 +09:00
diff --git a/dist/shared/nitro.c8278d90.mjs b/dist/shared/nitro.c8278d90.mjs
2023-01-09 21:23:43 +09:00
index 9ba312fc248da3731720ee7e3b38ba2a85537657..5ec9f06ccf60259820586715d73d41466daa8cff 100644
2023-01-09 20:12:43 +09:00
--- a/dist/shared/nitro.c8278d90.mjs
+++ b/dist/shared/nitro.c8278d90.mjs
2023-01-09 21:23:43 +09:00
@@ -1296,7 +1296,7 @@ async function copyPublicAssets(nitro) {
if (nitro.options.noPublicDir) {
return;
2023-01-09 20:12:43 +09:00
}
2023-01-09 21:23:43 +09:00
- for (const asset of nitro.options.publicAssets) {
+ for (const asset of [...nitro.options.publicAssets].reverse()) {
2023-01-09 20:12:43 +09:00
if (await isDirectory(asset.dir)) {
2023-01-09 21:23:43 +09:00
await fse.copy(asset.dir, join(nitro.options.output.publicDir, asset.baseURL));
}