DEV Community


Discussion on: My SCSS setup within a Vue CLI 3 project

vertcitron profile image
Vert Citron

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 ?

lynnewritescode profile image
Lynne Finnigan Author

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'

and in sass like this (without the quotes):

<style scoped lang="sass">
    @import styles.scss