postcss-sprites icon indicating copy to clipboard operation
postcss-sprites copied to clipboard

Upgrade to postcss 7.x

Open Olena-Stotska opened this issue 7 years ago • 3 comments

Could you please upgrade deps to use postcss 7.x?

Actually the better solution here would be moving postcss from dependencies to peerDependencies, as this library doesn't encapsulate postcss API, it's just a plugin. Also I'd recommend to enable https://renovatebot.com/ on github, it will make sure that your deps are always up to date

Olena-Stotska avatar Aug 04 '18 11:08 Olena-Stotska

I've just checked, all tests pass with postcss 7.x, so should be pretty easy to do

stalniy avatar Aug 19 '18 12:08 stalniy

I integrated renovate. The last thing you need to do is to enable it Settings > Integrations & services

stalniy avatar Aug 19 '18 12:08 stalniy

On my package.json I have:

"gulp-postcss": "^8.0.0",
 "postcss-sprites": "^4.2.1",

and I got the error:

Unknown error from PostCSS plugin. Your current PostCSS version is 7.0.6, but postcss-sprites uses 5.2.18. Perhaps this is the source of the error below
[...]
Stack:
TypeError: postcss.decl is not a function

Is this error related?

erredeco avatar Dec 06 '18 16:12 erredeco