re-ovo / unocss-intellij

Unocss support on Intellij Idea/WebStorm
https://plugins.jetbrains.com/plugin/22204-unocss
MIT License
169 stars 12 forks source link

Not working with html/pug in vue tamplate #59

Closed DeniroBlack closed 6 months ago

DeniroBlack commented 6 months ago

We use vue js + unocss + pug

But pug plugin not working in html/pug vue template

image

image

If this could be fixed, we would be very grateful. Thanks!

re-ovo commented 6 months ago

Can you show me your uno config?

DeniroBlack commented 6 months ago

@re-ovo config is default

image

re-ovo commented 6 months ago

I mean your unocss config, not plugin setting

DeniroBlack commented 6 months ago

I use unocss as vite plugin

import Unocss from 'unocss/vite' import { presetAttributify, presetUno, presetWind } from 'unocss' // Presets import { presetScalpel } from 'unocss-preset-scalpel' import transformerCompileClass from '@unocss/transformer-compile-class' import transformerDirectives from '@unocss/transformer-directives'

vite config plugin

Unocss({ presets: [presetAttributify(), presetUno(), presetWind(), presetScalpel()], // Presets transformers: [ transformerCompileClass(), transformerDirectives(), ] })

re-ovo commented 6 months ago
截屏2024-02-28 08 47 13

works well for me