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

Commit

Permalink
Only put a trailing slash into assetpath attribute if there is a path
Browse files Browse the repository at this point in the history
Othwerwise, resolvePath will return root folder

Bump version
  • Loading branch information
dfreedm committed Feb 20, 2014
1 parent 401478c commit ece6d54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/vulcan.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,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
$(URL_ATTR_SEL).each(function() {
URL_ATTR.forEach(function(a) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vulcanize",
"version": "0.1.14",
"version": "0.1.15",
"description": "Process Web Components into one output file",
"main": "lib/vulcan.js",
"bin": {
Expand Down

0 comments on commit ece6d54

Please sign in to comment.