roxiness / routify-starter

https://example.routify.dev/
198 stars 55 forks source link

Fix copy function in Rollup config #48

Closed alteredorange closed 4 years ago

alteredorange commented 4 years ago

This fix prevents the rollup copy plugin from duplicating files copied from static. Current copy command copies static folder recursively. If you have a large number of static assets multiple levels deep, everything will be copied twice (once to /dist/* and once to /dist/correctfolder/*. If you have hundreds or thousands of files in static, this might impact build time. Just copying the static dir with /* instead of /** appears to fix this issue.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/jakobrosenberg/routify-starter/r7efmoxw5 ✅ Preview: https://routify-starter-git-fork-alteredorange-master.jakobrosenberg.now.sh