jon48/webtrees-theme-rural

PostCSS: images are not inlined when upgrading postcss-replace to 2.0.0

Closed this issue · 0 comments

jon48 commented

When upgrading the NPM package to 2.0.0 from ^1.3.3, the images based on the {{webtrees}] placeholder are not inlined anymore.

This is probably due to the migration of the postcss-replace library to postcss 8, which introduce Once / OnceExit which can modify the order the plugins are executed. As postcss-replace use OnceExit, it seems that is is executed after postcss-image-inliner (which uses Once).

Downgrade to the working version until a more permanent fix can be implemented