Site: replace Parcel with Vite to speed up dotnet builds - #3884
Draft
reakaleek wants to merge 5 commits into
Draft
Site: replace Parcel with Vite to speed up dotnet builds#3884reakaleek wants to merge 5 commits into
reakaleek wants to merge 5 commits into
Conversation
Parcel added ~17s to every Site compile and bloated npm ci. Vite cuts the bundle step to ~2s, shrinks the dependency tree, and adds MSBuild skip/cache hooks so warm builds avoid reinstalling packages. Co-authored-by: Cursor <cursoragent@cursor.com>
Remove tasks/plan.md and tasks/todo.md from the repo and ignore tasks/ so local planning artifacts are not committed again. Co-authored-by: Cursor <cursoragent@cursor.com>
reakaleek
force-pushed
the
cursor/28123fe5
branch
from
August 17, 2026 19:27
e8e24e8 to
dd9723e
Compare
reakaleek
marked this pull request as draft
August 17, 2026 19:30
Regenerate the lockfile without platform-filtered node_modules so npm ci installs Rolldown bindings on Linux and Windows. Co-authored-by: Cursor <cursoragent@cursor.com>
Vite emits top-level imports, so the classic script tag prevented HTMX from starting and caused synthetics navigation to reload the page. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep generated assets flat so embedded-resource extraction preserves the paths used by frontend modules. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
dotnet buildthat pulls in Site runsnpm ciand a Parcel bundle step, which adds tens of seconds on cold CI runs and local worktreesWhat
_staticfilenames the C# embed layer expectsDesignTimeBuild,SkipNpmBuild) and cachenode_modulesin CI when the lockfile stamp is currentNotes
_static/assets/; embed globs and a pre-build clean target were updated accordinglynpm ciafter the smaller Vite tree; timings are intasks/plan.mdMade with Cursor