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
Update style-loader and mini-css-extract-plugin #9451
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
Documented in the changelog:
|
It's too bad the nbconvert-css index.css suffers from the same problems we were seeing in css-loader elsewhere - that the css is duplicated many times. For example, it seems that Lumino widget css is duplicated 228 times and Blueprint css is duplicated 101 times. I don't think that is in scope to fix here, but maybe something to think about for the future. |
css-loader will duplicate CSS, leading to, for example over 200 copies of the Lumino widget css, over 100 copies of the blueprint css, etc. This uses our new convention for importing package style files as js modules so that webpack does the css duplication for us.
Actually, it looks like the change might be easy. Can I push to your branch? |
Sure thing! |
The old index.css file is 1,146,862 lines and 46M. The new one is 13,423 lines and 522K. So about 1% the size. |
Note that our current published nbconvert-css package index.css is 13046 lines, 503K, so as expected, the deduplication was happening before. So this new commit is needed to make sure there is not a regression, and to bring things down to about the same size. |
Our linting is set up to assume every package is TypeScript, but there is no need for nbconvert-css to be typescript - the js file is simply standing in for a css file. Ignoring it avoids the lint errors stemming from this not being a typescript package.
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.
I approve @jtpio's changes.
@jtpio - if my changes look good to you, feel free to merge this. |
Thanks Jason for the extra fixes! |
References
Addresses part of #9297
Follow-up to #9364
Code changes
Dependency update.
User-facing changes
None
Backwards-incompatible changes
None