-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add option to minimize generated html file #150
Comments
My inclination would be that minification would be outside the purview of this crate. There are many established minifiers available, and to bring it into the scope of this crate would just add dependencies and whilst providing a sub-optimal implementation. When you say that you tried a minifier and it didn't work, can you expand on what happened? |
I used https://github.com/wilsonzlin/minify-html, but looks that js created by this library is unsupported yet or non standard. Code was similar to
|
Currently when using plot.to_html(), generated file is really big for big amount of data(my app can generate few plots with several thousands of points).
I found that removing unnecessary new lines and empty points can decrease size of plot by ~30%
I tried to use html/js minifier, but it doesn't work, so I wrote simple regex which do almost same thing
The text was updated successfully, but these errors were encountered: