vuetifyjs / vuetify-loader

πŸ“¦ Webpack and Vite plugins for treeshaking Vuetify components and more

Home Page:https://vuetifyjs.com/customization/a-la-carte#vuetify-loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.
image

pull request. The solution is straight forward.
#280