2createStudio / postcss-sprites

Generate sprites from stylesheets.
MIT License
413 stars 50 forks source link

Preserve PostCSS declaration sources #90

Closed jednano closed 7 years ago

jednano commented 7 years ago

Fixes #89

See changes w/o whitespace

If anybody is seeing errors like the following:

<css input>: Cannot read property 'input' of undefined

This is because the source is not being preserved when new PostCSS declarations are created. You have to clone existing declarations to preserve the source.

jednano commented 7 years ago

@vvasilev- should be ready to merge now. Please do a patch release once it's in. Thanks!

vvasilev- commented 7 years ago

Hey @jedmao, thanks for the PR. 😄