fix: remove duplicate .min asset entries from joomla.asset.json
Repo Health / Access control (push) Successful in 1s
Repo Health / Release configuration (push) Failing after 2s
Repo Health / Scripts governance (push) Successful in 2s
Repo Health / Repository health (push) Failing after 3s
Update Joomla Update Server XML Feed / Update updates.xml (push) Successful in 9s
Repo Health / Access control (push) Successful in 1s
Repo Health / Release configuration (push) Failing after 2s
Repo Health / Scripts governance (push) Successful in 2s
Repo Health / Repository health (push) Failing after 3s
Update Joomla Update Server XML Feed / Update updates.xml (push) Successful in 9s
Joomla's Web Asset Manager auto-serves .min.css/.min.js when debug mode is off — no need for separate registered assets. Duplicate entries were preventing the auto-switching behavior. Now: register source files only. Joomla finds .min versions automatically when $debug = false in configuration.php. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -28,48 +28,24 @@
|
||||
"uri": "media/templates/site/mokoonyx/css/template.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.base.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/template.min.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.offline",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/offline.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.offline.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/offline.min.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.user",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/user.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.user.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/user.min.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "user.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/mokoonyx/js/user.js",
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
{
|
||||
"name": "user.js.min",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/mokoonyx/js/user.min.js",
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
{
|
||||
"name": "template.font.osaka",
|
||||
"type": "style",
|
||||
@@ -82,60 +58,30 @@
|
||||
"uri": "media/templates/site/mokoonyx/css/editor.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.editor.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/editor.min.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.light.standard",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/theme/light.standard.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.light.standard.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/theme/light.standard.min.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.light.custom",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/theme/light.custom.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.light.custom.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/theme/light.custom.min.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.dark.standard",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/theme/dark.standard.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.dark.standard.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/theme/dark.standard.min.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.dark.custom",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/theme/dark.custom.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.dark.custom.min",
|
||||
"type": "style",
|
||||
"uri": "media/templates/site/mokoonyx/css/theme/dark.custom.min.css",
|
||||
"attributes": {"media": "all"}
|
||||
},
|
||||
{
|
||||
"name": "template.a11y-high-contrast",
|
||||
"type": "style",
|
||||
@@ -148,24 +94,12 @@
|
||||
"uri": "media/templates/site/mokoonyx/js/template.js",
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
{
|
||||
"name": "template.js.min",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/mokoonyx/js/template.min.js",
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
{
|
||||
"name": "gtm.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/mokoonyx/js/gtm.js",
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
{
|
||||
"name": "gtm.min.js",
|
||||
"type": "script",
|
||||
"uri": "media/templates/site/mokoonyx/js/gtm.min.js",
|
||||
"attributes": {"defer": true}
|
||||
},
|
||||
{
|
||||
"name": "vendor.fa7free.all",
|
||||
"type": "style",
|
||||
|
||||
Reference in New Issue
Block a user