alias doesn't work when forwarding vuetify SASS vars in windows machine
jd-solanki opened this issue Β· comments
Hi kael,
Thanks so much for improving vuetify loader β€οΈ
I am using it since it was maybe in alpha or beta, Great Work πͺπ»
However, While working on materio admin and improving it I found that overriding SCSS vars using configFile
option and using vite aliases to forward the variables doesn't work on windows. I have confirmed on my own.
Reproduction steps:
- Clone "vars-from-template" branch from this repo
- Install dependencies via
npm i
- Run via
npm run dev
Mac
In mac everything seems fine, you will get skyblue color in button
Windows
Here, somehow vuetify loader can't identify the alias path and doesn't pick up skyblue color π€
P.S. Please make sure to refer to vars-from-template branch
Thanks for your hard work π
The problem is in the prom slash when getting the path of the target.
Quick fix that works for me.
pull request. The solution is straight forward.
#280