laravel-theme icon indicating copy to clipboard operation
laravel-theme copied to clipboard

External css or js?

Open KatiaSishost opened this issue 2 years ago • 2 comments

How can add a external css or js like:

KatiaSishost avatar Mar 27 '22 16:03 KatiaSishost

You can add external or internal both type files in this way

in your theme config file: 'asset' => function($asset) { // Theme internal assets example $asset->themePath()->add([ ['style', [ 'css/style.css', 'css/style2.css' ]], ['script', [ 'js/script.js', 'js/script2.js' ]] ]); // external assets example $asset->add([ ['externalcss', [ '//cdnjs.cloudflare.com/ajax/libs/backbone.css', '//cdnjs.cloudflare.com/ajax/libs/backbone2.css' ]], ['externaljs', [ '//cdnjs.cloudflare.com/ajax/libs/backbone.js', '//cdnjs.cloudflare.com/ajax/libs/backbone2.js' ]], ]);

usmaneshop avatar Apr 01 '22 10:04 usmaneshop

ohh thanks you!

KatiaSishost avatar Apr 01 '22 14:04 KatiaSishost