From 7681a3d8540f1ace0d17c01020298baaa9bd8b6c Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Wed, 16 Oct 2013 11:07:42 -0400 Subject: [PATCH] include autoprefixer --- lib/nib.js | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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",