Skip to content

Commit

Permalink
Merge pull request #6 from niksy/cloned-decl
Browse files Browse the repository at this point in the history
Clone original background declaration
  • Loading branch information
simonsmith committed Feb 1, 2017
2 parents 6893484 + 0e946fd commit b8042a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/index.js
Expand Up @@ -36,8 +36,7 @@ function at2x({ identifier = '@2x' } = {}) {
// Construct a duplicate rule but with the image urls
// replaced with retina versions
const retinaRule = postcss.rule({ selector: decl.parent.selector });
retinaRule.append(postcss.decl({
prop: decl.prop,
retinaRule.append(decl.clone({
value: createRetinaUrl(decl.value, identifier)
}));

Expand Down

0 comments on commit b8042a3

Please sign in to comment.