Closed Bartmr closed 5 years ago
@davidtheclark and @travco can you review this PR? Thank you 😊
@Bartmr @sandrina-p I'm not the owner or maintainer of this repo. If @travco is no longer maintaining the project, I suggest you fork it and carry out your intentions (though 9 days isn't very much time to wait for a response to a PR).
I saw your note in the Gitter room, so I’ve added this functionality to postcss-extend-rule, if that helps you.
import postcssExtend from 'postcss-extend-rule';
postcssExtend({ name: 'postcss-extend' })
@Bartmr, @davidtheclark, we can probably close out this PR.
@jonathantneal @davidtheclark yes. There wasn't even a clear direction when I opened this in my older company.
@travco @jonathantneal @davidtheclark
Problem:
Some of us still use SASS from legacy code bases that force us to compile SCSS first. Using something like this:
will make the SASS compiler grab that extend rule before PostCSS.
Solution:
Allow use of an alias for the
@extend
rule, in this case,@extend-postcss
.As reference,
postcss-mixins
does it, as described in the README section Migration from SASS.