Closed Gregory-Han closed 2 weeks ago
Hi @Gregory-Han! 👋
It looks like you provided an invalid or unsupported reproduction URL. Do not use any service other than Codepen, jsFiddle, StackBlitz, Codesandbox, and GitHub. Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc. Please edit your original post above and provide a valid reproduction URL as explained.
Without a proper reproduction, your issue will have to get closed.
Thank you for your collaboration. 👏
Regarding the chunk size, there is literally an example with this on the "Handling Vite config" page. https://quasar.dev/quasar-cli-vite/handling-vite#updating-vite-config
Regarding the other issue with CSS, please provide a reproduction repo/sandbox so that we can help you. Will reopen after reproduction is supplied.
What happened?
Build mode............. electron Pkg quasar............. v2.15.2 Pkg @quasar/app-vite... v1.8.0 Pkg vite............... v2.9.17 Debugging.............. no Publishing............. no
App • WAIT • Compiling of Electron UI with Vite in progress... warnings when minifying css: ▲ [WARNING] Expected ":" [css-syntax-error]
warnings when minifying css: ▲ [WARNING] Expected ":" [css-syntax-error]
▲ [WARNING] Expected ":" [css-syntax-error]
(!) Some chunks are larger than 500 KiB after minification. Consider:
Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. App • DONE • Electron UI compiled with success • 19651ms
App • WAIT • Compiling of Electron Main with Esbuild in progress... App • DONE • Electron Main compiled with success • 55ms
App • WAIT • Compiling of Electron Preload with Esbuild in progress... App • DONE • Electron Preload compiled with success • 7ms
UI files build summary:
What did you expect to happen?
I want to remove warning about css and chunk sizes.
Reproduction URL
None
How to reproduce?
quasar build -m electron
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
SPA Mode, Electron Mode
Platforms/Browsers
Chrome, Electron
Quasar info output
Relevant log output
Additional context
Build mode............. electron Pkg quasar............. v2.15.2 Pkg @quasar/app-vite... v1.8.0 Pkg vite............... v2.9.17 Debugging.............. no Publishing............. no
App • WAIT • Compiling of Electron UI with Vite in progress... warnings when minifying css: ▲ [WARNING] Expected ":" [css-syntax-error]
warnings when minifying css: ▲ [WARNING] Expected ":" [css-syntax-error]
▲ [WARNING] Expected ":" [css-syntax-error]
(!) Some chunks are larger than 500 KiB after minification. Consider:
Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. App • DONE • Electron UI compiled with success • 19651ms
App • WAIT • Compiling of Electron Main with Esbuild in progress... App • DONE • Electron Main compiled with success • 55ms
App • WAIT • Compiling of Electron Preload with Esbuild in progress... App • DONE • Electron Preload compiled with success • 7ms
UI files build summary: