Skip to content

fix(build): do not override publicAssets in build - #817

Merged
pi0 merged 1 commit into
mainfrom
fix/public-assets-build
Jan 9, 2023
Merged

pi0 merged 1 commit into
mainfrom
fix/public-assets-build

Conversation

@antfu

@antfu antfu commented Jan 9, 2023

Copy link
Copy Markdown
Member

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

There is a misalignment across dev and build. In dev, the middleware is registered in the normal order, which mean eailer items in publicAssets will have higher priority. While in build, fes.copy defaults to overrides the existing files, making the priority in the oppsite direction.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@pi0
pi0 merged commit a3492b0 into main Jan 9, 2023
@pi0
pi0 deleted the fix/public-assets-build branch January 9, 2023 11:18
pi0 pushed a commit that referenced this pull request Jan 16, 2023

This branch was successfully deployed

1 active deployment
Preview — a1eb24d7 Deployed Jan 9, 2023 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants