grunt-combohtml
Advanced tools
Comparing version 0.1.41 to 0.1.42
{ | ||
"name": "grunt-combohtml", | ||
"description": "combine build html with ssi.", | ||
"version": "0.1.41", | ||
"version": "0.1.42", | ||
"homepage": "https://github.com/jayli/grunt-combohtml", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -0,0 +0,0 @@ /*jslint onevar: false, plusplus: false */ |
@@ -0,0 +0,0 @@ // 'use strict'; |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -88,3 +88,3 @@ // 'use strict'; | ||
} | ||
return ('http://' + baseUrl + '/??' + source.join(',')).replace('????', '??'); | ||
return (source.length > 0) ? ('http://' + baseUrl + '/??' + source.join(',')).replace('????', '??') : ''; | ||
} | ||
@@ -126,6 +126,6 @@ | ||
var comboStr = ''; | ||
if (comboCSS) { | ||
if (comboCSS && css) { | ||
comboStr += '<link href="' + css + '" rel="stylesheet" />\n'; | ||
} | ||
if (comboJS) { | ||
if (comboJS && js) { | ||
comboStr += '<script src="' + js + '"></script>\n'; | ||
@@ -220,2 +220,1 @@ } | ||
exports.parse = parse; | ||
159653