Skip to content

fix: dev mode hot reload and add sourcemaps - #2402

Merged
Koooooo-7 merged 3 commits into
developfrom
fix-dev-hot-reload
Apr 17, 2024
Merged

fix: dev mode hot reload and add sourcemaps#2402
Koooooo-7 merged 3 commits into
developfrom
fix-dev-hot-reload

Conversation

@jhildenbiddle

@jhildenbiddlejhildenbiddle commented Apr 11, 2024

Copy link
Copy Markdown
Member

Summary

Fixes two development issues:

  1. Hot reload was not working because the docs site was loading lib/docsify.min.js which was only updated on "production" builds. The build now generates minified and non-minified bundles for all builds.
  2. Source maps are now generated for all .min.js files in /lib/. This solution is best for troubleshooting during development because source maps provide unminified source code along with accurate file and line locations on errors. Using non-minified bundles for development was previously discussed, however this approach does not provide accurate source file and line locations.

Related issue, if any:

None

What kind of change does this PR introduce?

Bugfix
Build-related changes

For any code change,

N/A

Does this PR introduce a breaking change?

No

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari

@vercel

vercelBot commented Apr 11, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

NameStatusPreviewCommentsUpdated (UTC)
docsify-preview✅ Ready (Inspect)Visit Preview💬 Add feedbackApr 13, 2024 7:20am

@jhildenbiddlejhildenbiddle self-assigned this Apr 11, 2024
@jhildenbiddlejhildenbiddle added this to the 5.x milestone Apr 11, 2024
@jhildenbiddle
jhildenbiddle requested a review from a teamApril 12, 2024 14:17
Koooooo-7
Koooooo-7 previously approved these changes Apr 13, 2024

@Koooooo-7Koooooo-7 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.

LGTM.

@Koooooo-7
Koooooo-7 requested a review from a teamApril 13, 2024 04:50
@jhildenbiddle

Copy link
Copy Markdown
MemberAuthor

@Koooooo-7 --

Awaiting approval to merge PR. Thx!

@Koooooo-7
Koooooo-7 merged commit 947d8de into developApr 17, 2024
@Koooooo-7
Koooooo-7 deleted the fix-dev-hot-reload branch April 17, 2024 03:52
@sy-recordssy-records mentioned this pull request May 5, 2025
@sy-recordssy-records mentioned this pull request Jul 17, 2026
Sign up for freeto 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.

3 participants

@jhildenbiddle@Koooooo-7@sy-records