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

Propose to whitelist AutoPrefixer plugin in Github Pages #4396

Closed
JohnStarich opened this issue Jan 25, 2016 · 4 comments
Closed

Propose to whitelist AutoPrefixer plugin in Github Pages #4396

JohnStarich opened this issue Jan 25, 2016 · 4 comments

Comments

@JohnStarich
Copy link

After reading #325, I would like to propose a plugin to be whitelisted for Github Pages.

The Autoprefixer plugin adds CSS rules to support current browsers including vendor prefixes or alternate rules in order to support more browsers out of the box.

Original Autoprefixer: autoprefixer-rails
Jekyll Autoprefixer Plugin: octopress-autoprefixer

I find this feature essential because it simplifies my CSS/Sass files considerably. With this plugin I don't need to specify many different rules in my stylesheets to do exactly the same thing in different browsers.

As an example, in Autoprefixer I only need to write justify-content: center; and it will generate the following for me:

-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;

This plugin saves me a lot of time while making websites, so I hope this may make its way to Github Pages so we might all save a little time. 😄

@parkr
Copy link
Member

parkr commented Jan 25, 2016

Hey @JohnStarich! Unfortunately, we have no power to add plugins to GitHub Pages. That's for GitHub to decide. Generally speaking, they try to be fairly strict on adding new plugins, as the GitHub Security Team must review every line of every plugin that is added or upgraded so it takes quite a bit of time.

Assets in particular are a difficult topic and we should figure out what is the best approach. @envygeeks has requested jekyll-assets be added to GitHub Pages, and I believe the team is considering his proposal now. It allows autoprefixing with the rails addon, so if we were to consider this, we'd do it either in his proposal, or as a pull request to jekyll-sass-converter.

Hope this clarifies things a bit. Thanks!

@parkr parkr closed this as completed Jan 25, 2016
@JohnStarich
Copy link
Author

It does, thank you! Perhaps we should leave a comment on #325 letting others landing there know as well?

@jamiewilson
Copy link

@JohnStarich You could use -prefix-free, which adds any needed prefixes client-side. Not as nice as prefixing at build time, but it'll at least allow you to still use gh-pages to compile from your remote repo.

@JohnStarich
Copy link
Author

@jamiewilson Thank you! That's a great solution for me. 👍

@jekyll jekyll locked and limited conversation to collaborators Jul 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants