question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove quasar/dist/quasar.sass by a variable in quasar.conf.js.

See original GitHub issue

Is 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:open
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
balabambecommented, Dec 29, 2020

Here is my solution below:

In app/templates/entry/server-entry.js (same as app/templates/entry/client-entry.js) image

In quasar.conf.js image

Will get the great result: image

If the idea is great please let me PR to dev, thanks alot.

5reactions
MarcelKlammercommented, Jan 13, 2021

Works like a charm. Thanks for that solution.

Quasar is a great tool. Adding this kind of flexibility helps alot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sass/SCSS Variables - Quasar Framework
When creating or deleting any of the src/css/quasar.variables.* files, you will need to restart your dev server in order for it to take...
Read more >
How the quasar framework uses less? - Stack Overflow
Inside the quasar creation framework,There are sass, scss, styles and css. But There's no less here.At https://quasar.dev/quasar-cli/quasar-conf ...
Read more >
App Pre-Processors & Webpack - Quasar Framework
Notice that you don't need to return anything. The parameter of extendWebpack(cfg) is the Webpack configuration Object generated by Quasar for you. You...
Read more >
Quasar Framework Upgrade - HackMD
Initial Steps · Babel Upgrade Start by removing the old .babelrc and creating a new babel. · Rename the folder src/plugins to src/boot...
Read more >
Use Sass Variables in Javascript - DEV Community ‍ ‍
You can save your settings as JSON in src/css/quasar.variables.json . Of course you can add whatever you want here, just be sure not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found