notebook icon indicating copy to clipboard operation
notebook copied to clipboard

Published frontend assets are not minified

Open davidbrochart opened this issue 3 months ago • 4 comments

The JavaScript assets are not minified, they take 63M compared to 17M for JupyterLab.

davidbrochart avatar Sep 26 '25 13:09 davidbrochart

Hi there, my team and i would like to work on this issue if that is alright with you?

nevin-lim avatar Oct 03 '25 09:10 nevin-lim

Hi @nevin-lim, thanks for helping out with this, I don't think anyone has started working on it yet.

davidbrochart avatar Oct 03 '25 10:10 davidbrochart

Hi @davidbrochart , We're the team working with @nevin-lim and we've identified the root cause: app/webpack.prod.config.js has minimize: false on line 18, which disables minification even in production builds.

Proposed fix: Change minimize: false to minimize: true Ensure production mode is properly set Consider removing .map files from distribution

Question: Was minification intentionally disabled for a specific reason, or can we submit a PR to enable it? We're ready to implement and test this fix.

Thanks! Harkirat and Chad

HarkiratS1511 avatar Oct 18 '25 07:10 HarkiratS1511

Please feel welcome to open a PR!

krassowski avatar Oct 18 '25 07:10 krassowski

The JavaScript assets are not minified, they take 63M compared to 17M for JupyterLab.

@davidbrochart Could you share where you see this difference in size between the notebook and jupyterlab assets?

jtpio avatar Dec 17 '25 07:12 jtpio