-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
How to reduce react-md-editor size while building? #531
Comments
Lines 20 to 74 in 5db9de2
@rts-gordon You need to do code splitting. Because it supports automatic highlighting of code in multiple programming languages. react-md-editor/www/package.json Line 22 in 5db9de2
You can use Like thie: https://uiwjs.github.io/react-md-editor/website-result.html |
Thanks for your answer. I want to know: why react-md-editor has so huge size after build? |
@rts-gordon Because all syntax highlighting is automatically lazy loaded. So all the syntax highlighting code is packed into it. |
@jaywcjlove How to disable it completely if we don't want to use syntax highlighting feature at all? |
@rts-gordon check out this issue: |
@omid Thank you. I will learn from that issue. |
Hi there,
I use react-md-editor in my React app, I found that the app has double size after
npm run build
. Is there any way to reduce the md-editor size while building? Thank you.Before use react-md-editor: app size: 4.9M, main.xxx.js.map size: 3.8M;
After use react-md-editor: app size: 9.6M, main.xxx.js.map size: 7.3M;
The text was updated successfully, but these errors were encountered: