-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use custom build of the highlight.js to reduce its bundle size #341
Labels
Comments
We don’t have highlight.js in the bundle, it’s all server side ;-) |
And actually it should support any language you define for fenced code block. At least HTML, for example. |
Server-side? Can you elaborate please? |
We send HTML from webpack loader, so we don’t have highlight.js on the frontend. |
This was referenced Aug 17, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to https://twitter.com/samccone/status/837173944293568512 providing only needed languages to highlight.js can reduce its bundle size significantly. Seems like a low hanging fruit to optimize since SG should only support JS/JSX.
The text was updated successfully, but these errors were encountered: