Skip to content

Commit

Permalink
Merge pull request #105 from sintaxi/release-v0.12.1
Browse files Browse the repository at this point in the history
Release v0.12.1
  • Loading branch information
sintaxi committed Sep 18, 2015
2 parents c4e706e + d822913 commit 97c3200
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 8 additions & 3 deletions lib/stylesheet/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
var path = require("path")
var fs = require("fs")
var helpers = require('../helpers')
var postcss = require('postcss')
var autoprefixer = require('autoprefixer')
var minify = require('harp-minify')
var minify = require('harp-minify')

/**
* Build Processor list for stylesheets.
Expand Down Expand Up @@ -60,8 +61,12 @@ module.exports = function(root, filePath, callback){
/**
* Autoprefix, then consistently minify
*/
var post = minify.css(autoprefixer.process(css).css);
callback(null, post);
postcss([autoprefixer]).process(css).then(function (result) {
result.warnings().forEach(function (warn) {
console.warn(warn.toString())
})
callback(null, minify.css(result.css))
})
})

})
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terraform",
"version": "0.11.0",
"version": "0.12.1",
"description": "pre-processor engine that powers the harp web server",
"repository": {
"type": "git",
Expand Down Expand Up @@ -28,16 +28,17 @@
],
"license": "MIT",
"dependencies": {
"lru-cache": "2.6.5",
"lru-cache": "2.7.0",
"harp-jade": "1.9.3-bc.4",
"coffee-script": "1.10.0",
"node-sass": "3.3.2",
"node-sass": "3.3.3",
"ejs": "2.3.4",
"marked": "0.3.5",
"less": "2.5.1",
"stylus": "0.47.3",
"harp-minify": "0.3.2",
"autoprefixer": "5.2.0"
"harp-minify": "0.3.3",
"autoprefixer": "5.2.0",
"postcss": "5.0.5"
},
"devDependencies": {
"mocha": "1.8.2",
Expand Down

0 comments on commit 97c3200

Please sign in to comment.