cuth / postcss-pxtorem

Convert pixel units to rem (root em) units using PostCSS
MIT License
2.06k stars 172 forks source link

How to use in angular project? #52

Closed vinceok closed 5 years ago

vinceok commented 5 years ago

Help!!!

cuth commented 5 years ago

It shouldn't be any problem to use with Angular. You should be able to use it like any other PostCSS plugin.

I believe Angular is just a runtime framework so you might not have added a compile step to your build process yet. PostCSS typically runs on your CSS files before you deploy them. I'd look into Webpack or PostCSS CLI to create a script to run on your CSS files first.