fix: dev mode hot reload and add sourcemaps by jhildenbiddle · Pull Request #2402 · docsifyjs/docsify
Summary
Fixes two development issues:
- Hot reload was not working because the docs site was loading
lib/docsify.min.jswhich was only updated on "production" builds. The build now generates minified and non-minified bundles for all builds. - Source maps are now generated for all
.min.jsfiles 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