Minifying side-effect of CSS [attribute] Selector
Closed this issue · 2 comments
Hey, thanks for the amazing library!
I've been using an older version and just updated to ^1.0
.
A couple of notes...
- I ran into trouble using
composer require hexydec/htmldoc
, and ended up needing"minimum-stability": "dev",
. What's the best way to update to the latest stable version? - Since updating, I have a new side-effect when minifying a targeting CSS attribute with no value (Vue's "v-cloak").
Before:
<style>
*[v-cloak] {
display: none;
}
</style>
After:
<style>
v-cloak {
display: none;
}
</style>
Thanks
Hi,
Glad you are liking my work! Firstly this issue is a problem within the CSSdoc project, as the minifier for CSS and Javascript are in separate projects.
Have just tested your example in the latest code and it is working correctly, I fixed that issue a while ago.
The composer file currently specifies to pull the latest code for those dependencies as I work towards making official releases for those projects. So I suggest running composer update
and making sure you have the latest code. Also it is worth running the latest HTMLdoc code too, although I will be making a new release shortly anyway.
Please let me know if you find any other issues.
Have now release v1.2.0, suggest you update to that. Just make sure to composer update
to get the latest dependencies.