Feature Request: Support Custom CSS Directory in Quasar Configuration #17686
Unanswered
maximilianfixl
asked this question in
Ideas / Proposals
Replies: 1 comment 3 replies
-
quasar/app-vite/lib/quasar-config-file.js Lines 649 to 654 in d26cc6b This seems to always add quasar/app-vite/lib/quasar-config-file.js Lines 87 to 102 in d26cc6b it seems that you can enter something that is not a string and has a property |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Quasar Team,
I am currently working on a project where I am reorganizing the structure to follow SOLID and Domain-Driven Design (DDD) principles. As part of this reorganization, I aim to move the CSS files into a dedicated directory within the interface layer of the project. This aligns with the separation of concerns and the overall architecture.
Currently, I have encountered an issue where it seems that Quasar (newest @quasar/app-vite v2) expects CSS files to reside in the default
src/css/
directory. While I can loadapp.scss
successfully from another location, the imports within the SCSS files (e.g.,@import "quasar.variables.scss";
) are ignored. This limitation makes it difficult to move the CSS files to a different directory while maintaining Quasar's expected behavior.Current Situation:
src/css/
directory are not handled as expected.@import "quasar.variables.scss";
fail unless the files remain in the default directory.app.scss
inquasar.config.ts
, the path is incorrectly appended tosrc/css/
.Example: If I configure
css: ['src/ui/css/app.scss']
, it becomessrc/css/src/ui/css/app.scss
internally.To bypass this, I need to use relative paths like
./../../src/css/app.scss
, which feels hacky and causes SCSS imports to stop working.quasar.config.ts
file, similar to howsourceFiles
can be configured.Proposed Feature:
Introduce a configuration option in
quasar.config.ts
that allows developers to define a custom directory for CSS files. This could work similarly to thesourceFiles
configuration, where the root CSS directory can be redefined.Example:
Why This Feature Matters:
Thank you for considering this feature request! I believe it would benefit many developers looking for flexibility in organizing their projects. 🚀
Best regards,
Max
Beta Was this translation helpful? Give feedback.
All reactions