Skip to content
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

Size limits #22

Closed
Riolku opened this issue Oct 16, 2023 · 2 comments
Closed

Size limits #22

Riolku opened this issue Oct 16, 2023 · 2 comments
Labels
wontfix This will not be worked on

Comments

@Riolku
Copy link
Contributor

Riolku commented Oct 16, 2023

Building the image yields the following. We should set a higher limit, or figure out how to strip these files to be within the limit.

-  Building for production...
[BABEL] Note: The code generator has deoptimised the styling of /home/node/app/node_modules/monaco-editor/esm/vs/language/html/html.worker.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /home/node/app/node_modules/monaco-editor/esm/vs/language/css/css.worker.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /home/node/app/node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /home/node/app/src/utils/CypherParser/CypherParser.ts as it exceeds the max of 500KB.
 WARNING  Compiled with 2 warnings12:44:17 PM

 warning  

asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  css.worker.js (1010 KiB)
  editor.worker.js (248 KiB)
  html.worker.js (677 KiB)
  json.worker.js (375 KiB)
  ts.worker.js (4.66 MiB)
  js/index.6358f0f7.js (389 KiB)
  css/chunk-vendors.ed48cc6e.css (328 KiB)
  js/chunk-vendors.d57c2224.js (5.26 MiB)
  img/kuzu-logo-inverse.png (493 KiB)
  third-party/fontawesome-free-6.4.2-web/webfonts/fa-solid-900.ttf (385 KiB)

 warning  

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  index (5.97 MiB)
      css/chunk-vendors.ed48cc6e.css
      js/chunk-vendors.d57c2224.js
      css/index.90908399.css
      js/index.6358f0f7.js
@mewim
Copy link
Member

mewim commented Oct 16, 2023

The webpack configuration was generated by vue-cli. I will look into it.

@mewim mewim added the wontfix This will not be worked on label Oct 19, 2023
@mewim
Copy link
Member

mewim commented Oct 19, 2023

It seems this can be safely ignored: https://stackoverflow.com/questions/35192796/babel-note-the-code-generator-has-deoptimised-the-styling-of-app-js-as-it-exc

I also tried to set the compact: true option and it did not seem to work with vue-cli, so I think I will leave it as-is for now.

@mewim mewim closed this as completed Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants