I have in a project a huge components base. Some have their style tag in scss, and others in sass.
When I put scss in 'preProcessor', it works for scss styles but not sass ones. If I put sass, the same, it does not works foe scss components.
Is there a way to import my variables file in both componetns ?
Off the top of my head, it could be the import syntax. I think in scss it looks like this:
<style scoped lang="scss"> @import 'styles.scss' </style>
and in sass like this (without the quotes):
<style scoped lang="sass"> @import styles.scss </style>
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have in a project a huge components base. Some have their style tag in scss, and others in sass.
When I put scss in 'preProcessor', it works for scss styles but not sass ones. If I put sass, the same, it does not works foe scss components.
Is there a way to import my variables file in both componetns ?
Off the top of my head, it could be the import syntax. I think in scss it looks like this:
and in sass like this (without the quotes):