Update config to latest version in the phx templates

See
https://github.com/phoenixframework/phoenix/commit/7ec73196b40b19738518a8b865ea1129bc997121
This commit is contained in:
Claudio Ortolina
2025-01-23 15:13:26 +00:00
parent 309ca8c67a
commit 1a8aa72c5b
+1
View File
@@ -73,6 +73,7 @@ module.exports = {
matchComponents({
"hero": ({ name, fullPath }) => {
let content = fs.readFileSync(fullPath).toString().replace(/\r?\n|\r/g, "")
content = encodeURIComponent(content)
let size = theme("spacing.6")
if (name.endsWith("-mini")) {
size = theme("spacing.5")