Closed denisborovikov closed 9 years ago
Thats an interesting one, will put it in.
@Metaller Were you using the preserveMediaQueries
option?
@jeremypeter Yes, preserveMediaQueries: true
.
I would use v3.0.0. It doesn't support preserveMediaQueries
, however I would just put the media query inside of a style block that will be ignored.
Example:
input
<style data-embed>.one{text-align: center;}</style>
<style data-embed>.two{text-align: center;}</style>
<style> .tree{text-align: center; } </style>
<style data-embed>
@media only screen and (max-width: 600px) {
.four {text-align: center;}
}
</style>
<style data-embed>.five{text-align: center;}</style>
output
<style>.one{text-align: center;}</style>
<style>.two{text-align: center;}</style>
<style>
@media only screen and (max-width: 600px) {
.four {text-align: center;}
}
</style>
<style>.five{text-align: center;}</style>
After processing styles inside data-ignore="ignore" tags goes to the end.
Input:
Output:
Expected: