JPeer264 / node-rcs-core

Rename css selectors across all files
MIT License
37 stars 7 forks source link

Replacing @keyframes name doesn't replace animation name #15

Closed klimashkin closed 7 years ago

klimashkin commented 7 years ago

With new replaceKeyframes: true option, this code

@keyframes Spinner_rotate_21ZiX{
  0%{
    transform:rotate(0deg);
  }
  100%{
    transform:rotate(360deg);
  }
}
.Spinner_spinner_LszC2{
  animation:Spinner_rotate_21ZiX 1.1s infinite linear;
}

is transformed into

@keyframes t{
  0%{
    transform:rotate(0deg);
  }
  100%{
    transform:rotate(360deg);
  }
}
.n{
  animation:Spinner_rotate_21ZiX 1.1s infinite linear;
}