Remove quasar/dist/quasar.sass by a variable in quasar.conf.js.
See original GitHub issueIs your feature request related to a problem? Please describe. I want a feature to remove quasar.sass in client-entry.js or server-entry.js.
Describe the solution you’d like Set a variable in quasar.conf.js to disable default quasar.sass. ex: framework.removeDefaultCss.
Describe alternatives you’ve considered Use other frameworks (ex: Nuxt.js). see reasons below.
Additional context I was build a page via SSR to build clean html code, but framework will load default quasar.sass in html, it’s very very long long long lines in html builded code, so I try to remove it, but saw the source code (app/templates/entry/server-entry.js) did not controlled by any variables:
// We load Quasar stylesheet file
import 'quasar/dist/quasar.<%= __css.quasarSrcExt %>'
so can teams add the variable to switch off the default css for clean html? I was love the framework, and much appreciated to add the feature, thanks alot.
P.S. Sorry for my poor english. 😦
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Here is my solution below:
In
app/templates/entry/server-entry.js
(same asapp/templates/entry/client-entry.js
)In
quasar.conf.js
Will get the great result:
If the idea is great please let me PR to dev, thanks alot.
Works like a charm. Thanks for that solution.
Quasar is a great tool. Adding this kind of flexibility helps alot.