-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Generated static files are not optimized #568
Comments
@yangshun I would like to claim the image optimization part. I made some progress that looks good! I integrated imagemin > optipng. Checkout the size difference on the screenshot below 🎆 I still need to add optimization for SVG and jpg 🕺 |
By the way it increased the build time a few seconds but it is normal. |
Cool, it's all yours! Yeah more processing definitely takes time. We can
add in a flag for compression in the build command that is set to true by
default.
…On Mon, May 7, 2018, 6:58 PM Ahmad Alfy ***@***.***> wrote:
By the way it increased the build time a few seconds but it is normal.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#568 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQRHTVeBf4ZUYCZfBjSUGBnNtweOsS6ks5twPuugaJpZM4TVs7q>
.
|
Gosh, BlueWhale.png is 1.3MB. If you don't mind, please help to compress the original image asset down to < 100kb in your PR too 👍 |
Yes I was going to replace all the original images with the optimized ones in the PR as well 😁 |
I successfully integrated:
Once we are done with this PR I will push it. The total size of the images was 4.4 MB and now after the introduction of the images compressors is 2.3 MB |
Should we update the list and remove optimizing the images? |
Ok checked "Optimized images". Thanks for reminding |
If anyone wants to take charge of the HTML minification it would be much appreciated 😄 |
Let me take care of that 😃
On Wed, Jun 13, 2018 at 5:26 AM Yangshun Tay ***@***.***> wrote:
If anyone wants to take charge of the HTML minification it would be much
appreciated 😄
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#568 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFWO_rixz54bt_hIj2h2a6yVWd8xPVPks5t8IZpgaJpZM4TVs7q>
.
--
Ahmad Alfy
alfy.me
|
@ahmadalfy How's your progress for this task? Let us know how we can help. If you are no longer available for this task, just let us know and we can free it up for someone else. Do keep us updated 😄 |
My bad I got hooked with other stuff. Give me one more trial this week and I will get it done |
Closing due to stale. Let's free this up. We are getting closer to next major version anyway :) |
Is this a bug report?
No
Have you read the Contributing Guidelines on issues?
Yes
Proposal
The generated static files in the
build
directory upon runningyarn build
are not minified, which can cause longer load times. Ideally, Docusaurus should have an asset minification pipeline that:The text was updated successfully, but these errors were encountered: