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

Autoprefix? #610

Open
jonnybradley opened this issue Oct 16, 2018 · 7 comments
Open

Autoprefix? #610

jonnybradley opened this issue Oct 16, 2018 · 7 comments

Comments

@jonnybradley
Copy link

Do you or anyone here know of a PHP based autoprefixer, like https://github.com/postcss/autoprefixer.

We use scssphp in Tiki 19 now (for which many thanks!) and it seems we need our prefixes fixing, and it seems like it might be a good option to include in here. The data as to what needs prefixing all seems to be in https://github.com/Fyrd/caniuse - wondering how hard it can be? :)

TIA

@nsrosenqvist
Copy link

Also interested in finding a php implementation 👍

@padaliyajay
Copy link

Yes I also need autoprefixer for bootstrap 4 in php

@arboc
Copy link

arboc commented Jan 2, 2019

autoprefixer would be great... 👍
in the meantime we are using --prefix-free (https://leaverou.github.io/prefixfree/) but a server side solution would be better.

@padaliyajay
Copy link

I have tried to make CSS autoprefixer in pure PHP. Take a look and contribute it.
https://github.com/padaliyajay/php-autoprefixer

@RdeWilde
Copy link

RdeWilde commented Jan 31, 2019

After you run the $compiledCssCode = $compiler->compile($sourceContent), just add the Autoprefixer mentioned by @padaliyajay .
$compiledCssCode = (new Autoprefixer($compiledCssCode))->compile(); (import the Autofixer class)

Be sure to add "padaliyajay/php-autoprefixer": "dev-master" to your composer.json`

@vuminhluan
Copy link

I have tried to make CSS autoprefixer in pure PHP. Take a look and contribute it.
https://github.com/padaliyajay/php-autoprefixer

Sir, I found that autoprefixer removed my comment lines in CSS file.
How could i fix it ?
(Sorry my English is bad)

@Cerdic
Copy link
Contributor

Cerdic commented May 13, 2019

This is definitely not a feature this compiler should try to deliver.

This is another subject, depending of state of the art of CSS and browser market whereas this compiler is (or try to be) agnostic about CSS keyword, level etc.

Moreover the auto-prefixing is not at all linked to the use of SCSS.

I think we can close this issue.

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

No branches or pull requests

8 participants