-
Notifications
You must be signed in to change notification settings - Fork 50
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
Rollup - improve loading time #302
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments on the implementation below - do you have some numbers on how much this improves the loading time?
Also, is it the intention that the contents of dist/
end up in the repo at some point? If so, could you add a .gitattributes
file with the following contents:
* text=auto
# don't diff machine generated files
lib/ -diff
package-lock.json -diff
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
It loads ~20ms faster (100->80). If we rollup the css files that gives another 30ms (I tried this). But for that we need to include This is related to my other PR #299 I asked this question in the slack group but there was no answer Is there a way to rollup less files in Atom. Because of This is the issue I created: xiaofuzi/rollup-plugin-less#30
Yes, we have to include dist folder. That is the limitation of |
As per #299, that seems like a bad idea to me.
Ow well, okay 👍 |
I added a script to rollup iconsets. That gives us another 10ms! 😃 |
d556aa5
to
674d31c
Compare
Nice! I agree that copying |
I'd also prefer the |
@suda The issue with only using This bash script circumvents that issue, and only adds the dist files through |
I made an npm package for ppublish script. https://github.com/aminya/build-commit |
@suda Could you merge this? |
Note: benchmark is done on top of #304
After rollup:
Before (considering no drawGutter):
For registering run the following: