jon48 / webtrees-theme-rural

Rural theme for webtrees
GNU General Public License v3.0
11 stars 2 forks source link

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

Closed jon48 closed 2 years ago

jon48 commented 2 years ago

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