Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Make sure not to lose assetpath fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Feb 25, 2014
1 parent 3fcf3ca commit 570007d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pathresolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ function setTextContent(node, text) {

function resolvePaths($, input, output) {
var assetPath = path.relative(output, input);
assetPath = assetPath.split(path.sep).join('/') + '/';
// make sure assetpath is a folder, but not root!
if (assetPath) {
assetPath = assetPath.split(path.sep).join('/') + '/';
}
// resolve attributes
$(constants.URL_ATTR_SEL).each(function() {
constants.URL_ATTR.forEach(function(a) {
Expand Down

0 comments on commit 570007d

Please sign in to comment.