Skip to content

Use UnoCSS instead of WindiCSS #478

Answered by ElMassimo
dplaza asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Diego!

It's likely a problem with how the relative paths are resolved in unocss (probably against Vite's root, which is app/javascript when in a Vite Ruby app, instead of your project root).

Try passing a resolved path (absolute path) instead of a relative path.

import { projectRoot } from 'vite-plugin-ruby'
import { resolve } from 'path'

...

		filesystem: [
			resolve(projectRoot, "app/views/**/*"),
		],

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dplaza
Comment options

Answer selected by dplaza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants