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: add custom vuetify module for styles plugin #2

Open
wants to merge 2 commits into
base: userquin/test-vite-5.4.2-modern-sass
Choose a base branch
from

Conversation

userquin
Copy link
Owner

@userquin userquin commented Aug 24, 2024

We should check vite version since we cannot add modern-compiler using https://pkg.pr.new/vite@561b940 from vitejs/vite#17909

I'm going to check if still working with vite 5.4.2 + modern-compiler without file://

@userquin
Copy link
Owner Author

userquin commented Aug 24, 2024

Using normalizePath also works but we get some vue-router warnings:

                 configResolved (config) {
                    if (isObject(options.styles)) {
                        if (path.isAbsolute(options.styles.configFile)) {
                            configFile = path.resolve(options.styles.configFile)
                        } else {
                            configFile = path.resolve(path.join(config.root || process.cwd(), options.styles.configFile))
                        }
                        configFile = normalizePath(configFile)
                    }
                },
                        const target = resolution.id.replace(/\.css$/, '.sass')
                        tempFiles.set(target, isNone
                            ? ''
                            : `@use "${configFile!}"\n@use "${normalizePath(resolution.id)}"`
                        )
                        return target

image

image

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.

1 participant