wide / forge

Zero-based configuration builder for frontend integration projects.
MIT License
0 stars 0 forks source link

Sass compilation creates duplicate selectors with inheritance #20

Closed magextrem closed 1 year ago

magextrem commented 1 year ago

Hello,

We currently have a strange behavior with sass compilation using forge.

Here's a simplified concrete example:

...

/* KO */
.link-test {
  height: auto;
}
...
/* OK */
.link-test {
  text-decoration: underline
}

...

It only happens when we use inheritance in sass files, otherwise compilation isn't creating other duplicate selectors. We've disabled any post process to check but it also failed. It was also tested with the latest versions of forge & modulus.

jdacosta commented 1 year ago

Hello Thomas,

As seen with you, this is the native behavior of the sass library. This is not related to forge directly and no fix can be done on our side.

Don't hesitate to come back to us if you have other questions :)

Have a nice day.