+[3.4.3 / 2015-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v3.4.2...3.4)
+==================
+
+* Fixed issue [#668](https://github.com/jakubpawlowicz/clean-css/issues/668) - node v4 path.join.
+
[3.4.2 / 2015-09-14](https://github.com/jakubpawlowicz/clean-css/compare/v3.4.1...v3.4.2)
==================
function absolute(uri, options) {
return path
- .resolve(path.join(options.fromBase, uri))
+ .resolve(path.join(options.fromBase || '', uri))
.replace(options.toBase, '');
}
function relative(uri, options) {
- return path.relative(options.toBase, path.join(options.fromBase, uri));
+ return path.relative(options.toBase, path.join(options.fromBase || '', uri));
}
function normalize(uri) {
assert.lengthOf(errors, 1);
}
},
+ 'with callback passed to remote import': {
+ topic: function () {
+ new CleanCSS({ processImportFrom: ['local'] }).minify('@import url(https://fonts.googleapis.com/css?family=Open+Sans);', this.callback);
+ },
+ 'should yield no error and minify': function (errors, minified) {
+ assert.equal(minified.styles, '@import url(https://fonts.googleapis.com/css?family=Open+Sans);');
+ }
+ },
'no debug': {
'topic': function () {
return new CleanCSS().minify('a{ color: #f00 }');