Skip to content
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

Open
wants to merge 4 commits into
base: userquin/test-vite-pr-17938
Choose a base branch
from

Conversation

userquin
Copy link
Owner

No description provided.

plugins/vuetify.ts Outdated Show resolved Hide resolved
const target = resolution.id.replace(/\.css$/, '.sass')
tempFiles.set(target, isNone
? ''
: `@use "${normalizePath(configFile)}"\n@use "${resolution.id}"`
Copy link
Owner Author

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

Copy link
Owner Author

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}"`

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link

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

Copy link
Owner Author

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

Copy link
Owner Author

@userquin userquin Aug 24, 2024

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

@userquin userquin changed the title chore: use custom vuetify vite plugin chore: use custom vuetify styles vite plugin Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants