Permalink
Browse files

fix .svg at2x. Closes #17

  • Loading branch information...
1 parent 92754e6 commit e10cc4841fe44ee6236239d28960fc51c4060525 @tj tj committed Dec 14, 2012
Showing with 8 additions and 1 deletion.
  1. +5 −1 examples/at2x.css
  2. +3 −0 lib/plugins/at2x.js
View
6 examples/at2x.css
@@ -2,4 +2,8 @@
background-image: url('component.png');
width: 289px;
height: 113px;
-}
+}
+
+.button {
+ background: url(some/awesome.svg);
+}
View
3 lib/plugins/at2x.js
@@ -42,6 +42,9 @@ module.exports = function(vendors) {
var url = stripQuotes(decl.value.slice(i + 4, decl.value.indexOf(')', i)));
var ext = path.extname(url);
+ // ignore .svg
+ if ('.svg' == ext) return;
+
// @2x value
url = path.join(path.dirname(url), path.basename(url, ext) + '@2x' + ext);

0 comments on commit e10cc48

Please sign in to comment.