Closed WillianPadilha closed 2 years ago
We've made it clear in docs that setting cssAddons is a Quasar CLI feature, so it doesn't works with the flavours.
Notice "quasar.conf.js" there. That's available in Quasar CLI only.
For adding the cssAddons with our Vite or Vue CLI plugin, you need to manually import it:
// Import Quasar css
import 'quasar/src/css/index.sass'
import 'quasar/src/css/flex-addon.sass'
Thanks a lot. Manually importing worked for me.
What happened?
When activating cssAddon:true, in src/main.js Quasar does not import file quasar/src/css/flex-addon Example of config in main.js
What did you expect to happen?
import 'quasar/src/css/flex-addon.<%= __css.quasarSrcExt %>'
Reproduction URL
https://github.com/quasarframework/quasar/blob/dev/app/templates/entry/client-entry.js#L38
How to reproduce?
1 - https://quasar.dev/start/vite-plugin Create a Project with Vite 2- add
cssAddon:true
in config of Quasar Use. ExampleFlavour
Vite Plugin (@quasar/vite-plugin)
Areas
SPA Mode, PWA Mode
Platforms/Browsers
Firefox, Chrome, Safari, Microsoft Edge
Quasar info output
Relevant log output
No response
Additional context
No response