windicss-webpack-plugin icon indicating copy to clipboard operation
windicss-webpack-plugin copied to clipboard

Generate duplicated css in dev mode when Attributify Mode is enable

Open masonzz opened this issue 3 years ago • 1 comments

Describe the bug Genetate duplicated css in dev mode

To Reproduce I could provide a repository if you need.

Screenshots

<div p="t-10">This is a WindiCss Demo</div>

it's ok when first render.

image

then I change p="t-10" to p="t-15", it's still ok

image

but when I change p="t-15" back to p="t-10", code for p="t-10" is duplicated.

image

masonzz avatar Nov 17 '21 14:11 masonzz

Hey @masonzz

Thanks for the issue, good catch. This seems like an issue with the windi core only affecting the development HMR. Since we have affordances in development for dodgy stuff like this, I'd deem this fairly low priority to fix.

However, I'll try to dig into it a bit deeper when I have some time

harlan-zw avatar Nov 18 '21 01:11 harlan-zw