]> git.maquefel.me Git - brevno-suite/hugo/commit
postcss: Make the resource cache key more stable
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 27 May 2022 15:01:35 +0000 (17:01 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 27 May 2022 16:38:44 +0000 (18:38 +0200)
commit46a2ea6d0d3aba04213362fc72f5a3a28e3c3404
tree02b304fdb8ceaf7bfd5c54f1c4421a734e8b8ffd
parent653ab2cc1f97df8f05c466e1d757e1c81fcc58f8
postcss: Make the resource cache key more stable

By using the input map as the basis, which means the hash will not change if we add/rename/remove options.

This happened in Hugo 0.99, as we added a new options. This is unortunate.

Unfortunately this means that the cache keys for PostCSS will change one more time in 0.100, but will be stable going forward.

Note that we have implemented this pattern in all the other resource transformers.

Updates #9787
resources/resource_transformers/postcss/postcss.go
resources/resource_transformers/postcss/postcss_test.go
tpl/resources/resources.go