#SCSS Question

8 messages · Page 1 of 1 (latest)

torn kraken
#

Would it be smart to create to create a SCSS directory like this and do this for my scss file in vue

<style lang="scss" scoped>
@import '@/assets/scss/client/cli-home';
</style>
#

or should I have it all in the same vue file

#

also I noticed this; what if I had a scss file that I wanted to use in a certain page but not globally

nimble marsh
#

I always had main.scss which is global and uses imports of other scss files inside

#

that way I can split scoped/global styles

#

and that way if you have scss that needs to be shared only via two components for example

#

you would directly import .scss file in those two components so it is not used for anything else

torn kraken
#

ah okay