You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be much harder to commit less, scss and stylus files out of sync with one another if the build process first compiled all three versions in memory and checked for equivalent output.
If there are differences, the build should cancel and a diff should be printed to the console.
Would help to resolve #36 in a sane manner (no one wants to validate all the differences with their eyeballs).
The text was updated successfully, but these errors were encountered:
This is a much harder problem than it sounds like. I just tried doing this with css-semdiff, which seems perfect for the job. But due to the different compilation edge cases, there are a lot of false positives.
For example, take the following code:
a {
position: absolute;position: absolute;
}
When you compile this with the SASS compiler, you get the same output as the input. However, when you compile it with the LESS compiler, it gets rid of the 1st occurrence of the duplicate rule and only leaves you with the 2nd. The .icono-home:after selector triggers this issue.
One potential solution would be to check a known diff into source control (where we've verified no changes are functional), and verify the diff doesn't change (similar to how Jest snapshots work for unit testing)
It would be much harder to commit less, scss and stylus files out of sync with one another if the build process first compiled all three versions in memory and checked for equivalent output.
If there are differences, the build should cancel and a diff should be printed to the console.
Would help to resolve #36 in a sane manner (no one wants to validate all the differences with their eyeballs).
The text was updated successfully, but these errors were encountered: