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

Color functions not being processed #6

Closed
benfrain opened this issue Apr 29, 2015 · 4 comments
Closed

Color functions not being processed #6

benfrain opened this issue Apr 29, 2015 · 4 comments

Comments

@benfrain
Copy link

Beginner question. I'm running PostCSS/postcss-color-function via Gulp and tried a reduction to get to the bottom of my issue. I have this task:

var postcss = require("gulp-postcss"); 
var colorFunction = require("postcss-color-function");

gulp.task("css", function(){
    var processors = [
    colorFunction
        ];
    gulp.src("preCSS/styles.css")
    .pipe(postcss(processors))
    .pipe(gulp.dest("output"));
});

Given this input:

.thing {
   color: color(white a(90%));
}

I am getting this (same) output:

.thing {
   color: color(white a(90%));
}

Is this due to the way I am configuring?

@MoOx
Copy link
Contributor

MoOx commented Apr 29, 2015

this plugin doesn't use recent postcss api. Meanwhile, use

var processors = [
    colorFunction() // plugin is a function that generate a function
        ]

@MoOx
Copy link
Contributor

MoOx commented Apr 29, 2015

Please keep this issue open. I will close when it will be "fixed".

@benfrain
Copy link
Author

No problem. Thanks.

@MoOx
Copy link
Contributor

MoOx commented Feb 1, 2017

Closed by 5682af2

@MoOx MoOx closed this as completed Feb 1, 2017
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