Skip to content

windicss vite integration. #37

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

You must be logged in to vote

Hi @Manborough!

Check this repo for a working example: https://github.com/ElMassimo/pingcrm-vite

I recently made a PR to Windi CSS to add a root option here.

You should specify the root to match the Rails root:

    WindiCSS({
      root: process.cwd(),
      scan: {
        fileExtensions: ['erb', 'html', 'vue', 'rb', 'jsx', 'tsx'],
        dirs: ['app/views', 'app/helpers', 'app/javascript'],
      },
    }),

I might add this to a FAQs section in the docs.

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@ElMassimo
Comment options

@Manborough
Comment options

@ElMassimo
Comment options

@ElMassimo
Comment options

@Manborough
Comment options

Answer selected by ElMassimo
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