curvedmark / roole

A language that compiles to CSS
http://roole.org
MIT License
342 stars 21 forks source link

Use caniuse data for prefixing #128

Open curvedmark opened 11 years ago

curvedmark commented 11 years ago

Inspired by https://github.com/ai/autoprefixer

A few things prevent me to use it directly for Roole:

narqo commented 10 years ago

Maybe you could extend current plugins API with more events. So, for example, somebody may write some sort of plugin to use autoprefixer as post-processing tool. Something like this:

var autoprefixer = require('autoprefixer'),
    roole = require('roole');

roole.use(funtion(roole) {
    roole.on('end', function(css, options) {
      return autoprefixer(options).compile(css);
    });
});
arikon commented 10 years ago

@narqo :+1: