Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
[0.1.3] update dependencies, fix #19, #20
Browse files Browse the repository at this point in the history
  • Loading branch information
breezewish committed Feb 14, 2015
1 parent 321ffd2 commit fcb71cc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ If you are using `cluster`, it is strongly recommended to enable file cache.

# Change log

0.1.3

- Update dependencies [#19](https://github.com/breeswish/express-minify/issues/19) [#20](https://github.com/breeswish/express-minify/issues/20)

0.1.2

- Added `res._skip`.
Expand Down
4 changes: 3 additions & 1 deletion minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ function minifyIt(type, options, content, callback) {
}
var result;
try {
result = sass.renderSync(content);
result = sass.renderSync({
data: content
}).css;
try {
if (!options.noMinify) {
result = cssmin(result);
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Breezewish",
"description": "An express middleware to automatically minify and cache your javascript and css files.",
"homepage": "https://github.com/breeswish/express-minify",
"version": "0.1.2",
"version": "0.1.3",
"main": "minify.js",
"keywords": [
"uglify",
Expand All @@ -18,20 +18,20 @@
"url": "git://github.com/breeswish/express-minify.git"
},
"dependencies": {
"coffee-script": "^1.8.0",
"coffee-script": "^1.9.0",
"cssmin": "^0.4.2",
"less": "^2.0.0",
"node-sass": "^1.2.3",
"less": "^2.4.0",
"node-sass": "^2.0.1",
"on-headers": "^1.0.0",
"stylus": "^0.49.3",
"uglify-js": "^2.4.15"
"stylus": "^0.50.0",
"uglify-js": "^2.4.16"
},
"devDependencies": {
"mocha": "~1.20.1",
"supertest": "~0.13.0",
"should": "~4.0.1",
"async": "~0.9.0",
"compression": "~1.0.8"
"mocha": "^2.1.0",
"supertest": "^0.15.0",
"should": "^5.0.0",
"async": "^0.9.0",
"compression": "^1.4.0"
},
"scripts": {
"test": "mocha --check-leaks --reporter dot"
Expand Down
4 changes: 3 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ function init(callback) {
}

minifyFunc.sass = function(content, callback) {
var css = sass.renderSync(content);
var css = sass.renderSync({
data: content
}).css;
callback({
processed: css,
minified: cssmin(css)
Expand Down

0 comments on commit fcb71cc

Please sign in to comment.