Comparing version 3.0.3 to 3.0.4
@@ -8,2 +8,3 @@ var Minifier | ||
, fs = require('fs') | ||
, path = require('path') | ||
, tmp = require('tmp') | ||
@@ -32,6 +33,16 @@ , concat = require('concat-stream') | ||
} | ||
}; | ||
} | ||
, compressTarget; | ||
this.opts = _.defaults(opts, defaults); | ||
/* Turn a string compressPath into a function */ | ||
if(typeof this.opts.compressPath == 'string') { | ||
compressTarget = this.opts.compressPath; | ||
this.opts.compressPath = function (p) { | ||
return path.relative(compressTarget, p); | ||
} | ||
} | ||
/* | ||
@@ -38,0 +49,0 @@ * Instance variables |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"repository": { | ||
@@ -24,0 +24,0 @@ "type": "git", |
@@ -53,2 +53,4 @@ Minifyify | ||
If a string is provided, it will be used instead of `my-app-root` in the function above. This is useful if you are working from the command line and cannot define a function. | ||
Defaults to a no-op (absolute paths to all source files). | ||
@@ -55,0 +57,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18664
386
117
0