2createStudio / postcss-sprites

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

the way to output dimensions of sprites in newest version has changed #55

Closed SUpermin6u closed 8 years ago

SUpermin6u commented 8 years ago

in newest version, the example at 'examples/output-dimensions.md' couldn't work anymore, this id the correct way to output dimension

vvasilev- commented 8 years ago

According to the API docs of PostCSS this should work as expected. Also the test of the example is passed. Can you give more information when this isn't working?

SUpermin6u commented 8 years ago

I made some mistake, this happens when i import the "gulp-postcss" module to build the gulp work flow,and the config to use 'postcss-sprites' to output dimension is a little diffrent from the example you gave

vvasilev- commented 8 years ago

Yes, you should include postcss along with gulp-postcss so you will be able to use postcss.decl method.