jessuni / shikwasa

An audio player born for podcast
https://shikwasa.js.org
MIT License
477 stars 31 forks source link

feat: add Autoprefixer #5

Closed yisibl closed 5 years ago

yisibl commented 5 years ago

Avoiding handwritten prefixes leads to many compatibility problems.

Before

@-webkit-keyframes rotate {
  to {
    -webkit-transform: rotate(360deg);
  }
}
@-moz-keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

After

@-webkit-keyframes rotate {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes rotate {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
jessuni commented 5 years ago

Thanks! As a junior, I really thought postcss alone would do all the compatibility prefixes for me... And thanks for the heads up! Will avoid hand-written prefixes in the future.

yisibl commented 5 years ago

您谦虚了。