fis-spriter-csssprites
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -16,3 +16,3 @@ /* | ||
, __repeat_re = /\brepeat-(x|y)/i | ||
, __sprites_re = /\?__sprite/i | ||
, __sprites_re = /[?&]__sprite/i | ||
, __sprites_hook_ld = '<<<' | ||
@@ -66,3 +66,3 @@ , __sprites_hook_rd = '>>>'; | ||
info = _.query(info.rest); | ||
self.image = info.rest; | ||
self.image = info.origin.replace(__sprites_re, ''); | ||
if (info.query && __sprites_re.test(info.query)) { | ||
@@ -69,0 +69,0 @@ self._is_sprites = true; |
@@ -89,3 +89,3 @@ /* | ||
this.css += arr_selector.join(',') | ||
+ '{background-image: url(' + image_file.getUrl(this.opt.hash, this.opt.domain) + ')}'; | ||
+ '{background-image: url(' + image_file.getUrl(this.opt.hash, this.opt.domain) + image_file.hash + ')}'; | ||
}, | ||
@@ -92,0 +92,0 @@ z_pack: require('./pack.js'), |
{ | ||
"name": "fis-spriter-csssprites", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "基于fis的csssprite,支持repeat-x,repeat-x,background-position", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
26136