kaleigh
kaleigh
KPCKevin Powell - Community
Created by kaleigh on 12/21/2023 in #front-end
Do I need a relative import if stylePreprocessorOptions knows the location?
Hi! I was following along with the video that explains @use and @forward, and some other random docs I found, and they led me to believe I could add @use 'mixins' as mixins; in my component's scss file instead of having to drill down to the exact location, like: @use '../../../../assets/styles/mixins' as mixins;? My co-worker says I can't do that because when he clicks on mixins in VS Code when @use 'mixins' as mixins; is in the file, it doesn't take him to the correct place. It does the same for me, but the mixins.radiostyle() style actually works regardless, so it seems fine to me. I've included the location of the folder inside of stylePreprocessorOptions , so isn't that enough?
1 replies