sass / migrator

Tool for migrating stylesheets to new Sass versions
MIT License
84 stars 10 forks source link

Support --forward=prefixed across migrator runs #124

Closed jathak closed 4 years ago

jathak commented 4 years ago

Fixes #123.

If a member was unprefixed by a previous migrator run, running the migrator on a downstream stylesheet with --forward=prefixed should still forward that member.

jathak commented 4 years ago

Added a test with a different prefix. --forward=prefixed is not allowed without --remove-prefix, so I don't think a test is necessary for that.

jathak commented 4 years ago

Oh, yeah, I forgot about cases like that. Would this be the best output?

<==> output/entrypoint.scss
@use "button";

@forward "button" as button-*;

a {
  color: button.$variable;
}

<==> output/entrypoint.import.scss
@forward "entrypoint" as lib-*;
nex3 commented 4 years ago

I think so, yeah.

jathak commented 4 years ago

Okay, this should now support the subprefix case.