Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An option to skip vendor/gem assets #159

Open
tadast opened this issue May 24, 2019 · 1 comment
Open

An option to skip vendor/gem assets #159

tadast opened this issue May 24, 2019 · 1 comment

Comments

@tadast
Copy link

tadast commented May 24, 2019

Should there be a way to skip vendor and gem assets? In one of my projects a lot of CSS comes from vendor assets and gems (e.g. engines, such as tolk). All of them are processed by autoprefixer by default. Most of the gems and assets usually have their css with prefixes already.

You can also have admin dashboards etc where you control what browsers are used and there's no need to add prefixes to these CSS files

Main motivation: performance. Based on my benchmarks I could shave off ~5s (out of 20s) by being able to omit certain CSS files that don't need auto-prefixing.

What would be your thoughts about this?

@ai
Copy link
Owner

ai commented May 24, 2019

I think that it is always good to update their prefixes according to your target browsers.

But we can do it for development. Please, send PR with an option which will disable prefixing for gems on Rails.env.development?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants