styled-jsx icon indicating copy to clipboard operation
styled-jsx copied to clipboard

Remove duplicates in "auto vendor prefixes"

Open ianidi opened this issue 5 years ago • 2 comments

I would like to request feature.

Currently sometimes you already have vendor prefixes in your css code. styled-jsx dosn't check if they were already declared and this way we have the same properties in output multiple times. Let me show you and example.

duplicate duplicate

Expected behaviour - it would check if there is already declared vendor prefix before adding it.

I understand you may offer to disable this function in my case - but what if I need it? Let's say I already declared the prefixes for flex, but didn't declare other prefixes. In such case I still need this function to be enabled.

ianidi avatar Dec 07 '19 19:12 ianidi

this is handled by the css processor https://github.com/thysultan/stylis.js can you open an issue on that repo?

giuseppeg avatar Feb 23 '20 10:02 giuseppeg

this is handled by the css processor https://github.com/thysultan/stylis.js can you open an issue on that repo?

can change to this package? https://www.npmjs.com/package/@vue/component-compiler-utils

compileStyle(StyleCompileOptions)

because stylis seem not maintenance

singleparty avatar Apr 08 '20 06:04 singleparty