Skip to content

build(Dev Server): Performance improvements - #2392

Merged
hirokiterashima merged 2 commits into
developfrom
build/improve-dev-server-performance
Dec 2, 2026
Merged

hirokiterashima merged 2 commits into
developfrom
build/improve-dev-server-performance

Conversation

@hirokiterashima

@hirokiterashima hirokiterashima commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Remove extra optimization step, outputHashing, and verbosity during dev server builds. We added optimization: true in PR feat(Grade by step): Display component summary views #2090, but I don't think we needed to. It was probably committed by mistake.
  • Update @use "tailwindcss" to @reference "tailwindcss"
    Reason: Each full import makes Tailwind scan the whole project and produce a complete stylesheet, including its global reset, inside that one component’s CSS. Tailwind also treats every template file as an input, so editing almost any .html file can rebuild those two large stylesheets. Changing both to @reference "tailwindcss" should speed up rebuilds. It also stops Tailwind’s global reset from being copied into those components’ CSS.

Test/Verify

  • Dev server build works as before (cold start and hot reload on changes). Cold start and hot reload should take less time. For me, they were both at least ~25% faster with these changes. New cold start took less than 1 minute, and hot reload took 5-10 seconds.
  • [JLB] Verify: we added optimization: true in PR feat(Grade by step): Display component summary views #2090, but I don't think we needed to. It was probably committed by mistake.
  • [JLB] Verify: Tailwind changes make sense. I'm guessing we just forgot to update these classes?
    • src/assets/wise5/directives/summary-display/summary-display.component.scss
    • src/assets/wise5/classroomMonitor/classroomMonitorComponents/component-summary/component-summary.component.scss

@hirokiterashima hirokiterashima self-assigned this Nov 19, 2026
@hirokiterashima hirokiterashima changed the title build(Dev Server): Improve performance build(Dev Server): Performance improvements Nov 19, 2026
@qltysh

qltysh Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Qlty


Coverage Impact

Unable to calculate total coverage change because base branch coverage was not found.

Commit 85364a0 · 🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@breity breity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. 👍

Yes, I've been changing @use "tailwindcss" to @reference "tailwindcss" in other places. Looks like we just missed the instances here.

I agree we don't need optimization: true for dev.

@hirokiterashima

Copy link
Copy Markdown
Member Author

Average cold start improvement: ~25.8%
Average hot reload improvement: ~76.4%

@hirokiterashima
hirokiterashima merged commit 9bb5e38 into develop Dec 2, 2026
4 checks passed
@hirokiterashima
hirokiterashima deleted the build/improve-dev-server-performance branch December 2, 2026 06:55
@hirokiterashima
hirokiterashima restored the build/improve-dev-server-performance branch December 2, 2026 07:03
@hirokiterashima
hirokiterashima deleted the build/improve-dev-server-performance branch December 2, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants