{{ asset:js file="theme::custom.js" group="default" }}
{{ asset:js file="theme::app.js" group="default" }}
{{ asset:render_js group="default" }}
{{ asset:render_js group="modules" }}
That's my code for my JavaScript, but when I load in production, it doesn't load the script
tag. However, in system/cms/config/asset.php
if I turn asset_min
and asset_combine
to false, then it loads the JS files individually, without combining or minifying.
But I want it to combine and minify.
Help?
You have to do has follow to render the JS assets :
{{ asset:js file="theme::custom.js" group="default" }} {{ asset:js file="theme::app.js" group="default" }}
{{ asset:render group="default" }} {{ asset:render group="modules" }}
I think asset:render_js don't actually works