We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I had a small problem with this plugin. I'm using this in a layout:
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>style.php" />
and in style.php:
style.php
<?php require 'vendor/autoload.php'; $autoprefixer = new Autoprefixer(); $css = 'a { transition: transform 1s, color: red }'; $prefixed = $autoprefixer->compile($css); echo $prefixed;
What I'm doing wrong? I want to use this plugin with scss but I had the same results... And I tried also this configuration:
<?php require 'vendor/autoload.php'; use Leafo\ScssPhp\Compiler; header('Content-Type: text/css'); $autoprefixer = new Autoprefixer(); $scss = new Compiler(); $scss->setImportPaths("styles/"); $scss->setFormatter("Leafo\ScssPhp\Formatter\Crunched"); $scssFile = $scss->compile('@import "style.scss"'); $prefixed = $autoprefixer->compile($scssFile); echo $prefixed;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I had a small problem with this plugin.
I'm using this in a layout:
and in
style.php
:What I'm doing wrong?
I want to use this plugin with scss but I had the same results... And I tried also this configuration:
The text was updated successfully, but these errors were encountered: