Hi,
Is there any way to apply CDN base url to enqueued css and scripts?
i am using :
bundle('app')->enqueue();
Thanks!
Hi,
Is there any way to apply CDN base url to enqueued css and scripts?
i am using :
bundle('app')->enqueue();
Thanks!
you can change the default config in acorn ,
copy vendor/roots/acorn/config/assets.php
to web/app/themes/your_theme/config
,
and change the config
'manifests' => [
'theme' => [
'path' => get_theme_file_path('public'),
'url' => $your_cdn_base_url,
'assets' => get_theme_file_path('public/manifest.json'),
'bundles' => get_theme_file_path('public/entrypoints.json'),
],
],