You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect that the referenced css file is included in the app.
Instead it seems like both variants do not have any effect (bootstrap.min.css not loaded) while a build of the component with vite works as expected.
Is this setup not supported by nicegui or is there an issue with my specific stack (Win11, Python 3.11.9, pypyscss / lesscpy installed)
PS: As a workaround I use ui.add_head_html()
The text was updated successfully, but these errors were encountered:
I'm not too familiar with SCSS and LESS, but according to claude.ai these code snippets are not supported in Vue single file components (SFC):
The @use rule in SCSS cannot load external URLs directly. It's designed to work with local files and modules.
While LESS does support @import url(), using it within Vue's single file components to import external stylesheets isn't recommended and may not work as expected.
So I'd suggest to verify the syntax with a plain Vue app. If it does work, we should look into vbuild which is used by NiceGUI to process SFCs.
Description
I've played around with scss/less @import / @use within the <style> section of vue components (see also #4164)
Option 2:
I would expect that the referenced css file is included in the app.
Instead it seems like both variants do not have any effect (bootstrap.min.css not loaded) while a build of the component with vite works as expected.
Is this setup not supported by nicegui or is there an issue with my specific stack (Win11, Python 3.11.9, pypyscss / lesscpy installed)
PS: As a workaround I use
ui.add_head_html()
The text was updated successfully, but these errors were encountered: