diff --git a/lib/nib.js b/lib/nib.js index 5d02791e..11ebf51f 100644 --- a/lib/nib.js +++ b/lib/nib.js @@ -10,6 +10,7 @@ */ var stylus = require('stylus') + , autoprefixer = require('autoprefixer-stylus') , nodes = stylus.nodes , utils = stylus.utils , Canvas @@ -50,6 +51,8 @@ function plugin() { return function(style){ style.include(__dirname); + autoprefixer()(style); + if (Canvas) { style.define('has-canvas', nodes.true); diff --git a/package.json b/package.json index e2a58559..10f4cfcb 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "url": "git://github.com/visionmedia/nib.git" }, "dependencies": { - "stylus": "~0.37.0" + "stylus": "~0.37.0", + "autoprefixer-stylus": "0.0.x" }, "devDependencies": { "connect": "1.x",