-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use custom vuetify styles vite plugin #2
base: userquin/test-vite-pr-17938
Are you sure you want to change the base?
chore: use custom vuetify styles vite plugin #2
Conversation
plugins/vuetify.ts
Outdated
const target = resolution.id.replace(/\.css$/, '.sass') | ||
tempFiles.set(target, isNone | ||
? '' | ||
: `@use "${normalizePath(configFile)}"\n@use "${resolution.id}"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need to normalize config file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact with the Vite file://
resolver we should use:
`@use "${pathToFileURL(configFile).href}"\n@use "${pathToFileURL(resolution.id).href}"`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sass needed a leading slash on windows last time I checked: vuetifyjs/vuetify-loader#274
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KaelWD this branch using custom file://
loader from https://pkg.pr.new/vite@561b940
Check vitejs/vite#17909
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
previous screenshot from my Windows laptop; working with and without pathToFileURL(...).href
No description provided.