ai / autoprefixer-rails

Autoprefixer for Ruby and Ruby on Rails
https://twitter.com/autoprefixer
MIT License
1.22k stars 107 forks source link

Autoprefixer very slow #214

Closed lesliev closed 2 years ago

lesliev commented 3 years ago

Running Autoprefixer during the deployment of our application takes more than 20 minutes. Is there anything we can do to speed it up? We are on Rails 5.2 and autoprefixer-rails-9.7.4 - we could upgrade it but I don't see anything in Changelog that indicates speed improvements.

Our .browserslistrc is:

defaults
IE 11

...which produces:

and_chr 92
and_ff 90
and_qq 10.4
and_uc 12.12
android 92
baidu 7.12
chrome 92
chrome 91
chrome 90
edge 92
edge 91
firefox 91
firefox 90
firefox 89
firefox 78
ie 11
ios_saf 14.5-14.7
ios_saf 14.0-14.4
kaios 2.5
op_mini all
op_mob 64
opera 78
opera 77
safari 14.1
safari 14
safari 13.1
samsung 14.0
samsung 13.0

I wanted to try timing it with fewer browers in this list but I don't see how to execute Autoprefixer manually on local. Running bundle exec rake assets:precompile RAILS_ENV=production doesn't seem to do it.

albb0920 commented 3 years ago

Can you test how much time it cost to precompile without autoprefixer? Thanks

2021年8月25日(水) 11:04 Leslie Viljoen @.***>:

Running Autoprefixer during the deployment of our application takes more than 20 minutes. Is there anything we can do to speed it up? We are on Rails 5.2 and autoprefixer-rails-9.7.4 - we could upgrade it but I don't see anything in Changelog that indicates speed improvements.

Our .browserslistrc is:

defaults IE 11

...which produces:

and_chr 92 and_ff 90 and_qq 10.4 and_uc 12.12 android 92 baidu 7.12 chrome 92 chrome 91 chrome 90 edge 92 edge 91 firefox 91 firefox 90 firefox 89 firefox 78 ie 11 ios_saf 14.5-14.7 ios_saf 14.0-14.4 kaios 2.5 op_mini all op_mob 64 opera 78 opera 77 safari 14.1 safari 14 safari 13.1 samsung 14.0 samsung 13.0

I wanted to try timing it with fewer browers in this list but I don't see how to execute Autoprefixer manually on local. Running bundle exec rake assets:precompile RAILS_ENV=production doesn't seem to do it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ai/autoprefixer-rails/issues/214, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDO5FU5Y2AGVBYLKKCVWTT6RMSHANCNFSM5CYC7CQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

lesliev commented 3 years ago

OK, I will report back when I've done that.

albb0920 commented 2 years ago

Close this issue for inactivity, please reopen if needed.