0.3.1 • Published 11 years ago

roole-prefixer v0.3.1

Weekly downloads
29
License
-
Repository
github
Last release
11 years ago

roole-prefixer

Prefix rules in CSS AST with vendor names;

Example

var parser = require('roole-parser');
var compiler = require('roole-compiler');
var prefixer = require('roole-prefixer');

var ast = parser.parse('body { box-sizing: border-box }');
ast = prefixer.prefix(ast);
var css = compiler.compile(ast);

console.log(css);

API

var ast = prefixer.prefix(ast, [options]);
  • ast - CSS AST
  • options - an object literal supports these options: * prefixes (default: ['webkit', 'moz', 'ms', 'o']) - An array of strings containing vendor names to be prefixed. The order determines the order of prefixing.
0.3.1

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago