Skip to content

Commit

Permalink
fix: fixCSSpathPlugin bug which is mentioned in spmjs/spm#1320, Close s…
Browse files Browse the repository at this point in the history
  • Loading branch information
soda-x committed Jun 1, 2015
1 parent 72b7cff commit 6562c4b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/FixCSSPathPlugin.js
Expand Up @@ -68,7 +68,7 @@ function fixCSS(pkgOpts, assets) {
if (item.path === newPath) {
return item.string;
} else {
return 'url("'+newPath+'");';
return 'url("'+newPath+'")';
}
});
assets[cssFile] = new RawSource(code);
Expand Down
@@ -1,13 +1,13 @@
a {
color: red;
background: url("../a999bdfa2088b4e95c213a07b79cc353.jpg");;
background: url("../a999bdfa2088b4e95c213a07b79cc353.jpg");
}

a {
color: red;
background: url("../917cf8a0ae274ed25f07ad296acb10c8.jpg");;
background: url("../917cf8a0ae274ed25f07ad296acb10c8.jpg");
}

a {
background: url("../173ad31e7143beba48c678b38c686cfa.jpg#abc");;
background: url("../173ad31e7143beba48c678b38c686cfa.jpg#abc");
}
6 changes: 3 additions & 3 deletions test/expected/fix-css-resources-path-with-name/hello/a/a.css
@@ -1,13 +1,13 @@
a {
color: red;
background: url("../a999bdfa2088b4e95c213a07b79cc353.jpg");;
background: url("../a999bdfa2088b4e95c213a07b79cc353.jpg");
}

a {
color: red;
background: url("../917cf8a0ae274ed25f07ad296acb10c8.jpg");;
background: url("../917cf8a0ae274ed25f07ad296acb10c8.jpg");
}

a {
background: url("../173ad31e7143beba48c678b38c686cfa.jpg#abc");;
background: url("../173ad31e7143beba48c678b38c686cfa.jpg#abc");
}
@@ -1,13 +1,13 @@
a {
color: red;
background: url("../a999bdfa2088b4e95c213a07b79cc353.jpg");;
background: url("../a999bdfa2088b4e95c213a07b79cc353.jpg");
}

a {
color: red;
background: url("../917cf8a0ae274ed25f07ad296acb10c8.jpg");;
background: url("../917cf8a0ae274ed25f07ad296acb10c8.jpg");
}

a {
background: url("../173ad31e7143beba48c678b38c686cfa.jpg#abc");;
background: url("../173ad31e7143beba48c678b38c686cfa.jpg#abc");
}
6 changes: 3 additions & 3 deletions test/expected/fix-css-resources-path/a/a.css
@@ -1,13 +1,13 @@
a {
color: red;
background: url("../a999bdfa2088b4e95c213a07b79cc353.jpg");;
background: url("../a999bdfa2088b4e95c213a07b79cc353.jpg");
}

a {
color: red;
background: url("../917cf8a0ae274ed25f07ad296acb10c8.jpg");;
background: url("../917cf8a0ae274ed25f07ad296acb10c8.jpg");
}

a {
background: url("../173ad31e7143beba48c678b38c686cfa.jpg#abc");;
background: url("../173ad31e7143beba48c678b38c686cfa.jpg#abc");
}

0 comments on commit 6562c4b

Please sign in to comment.