cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 - How to add custom JS file into Blocks

Magento 2 - How to add custom JS file into Blocks

How to get JS file in the blocks,

How to declare like -> 

<script type="text/javascript" src="{{skin url=''}}js/my_custom.js"></script>

 

My JS path: app/design/frontend/Codazon/fastest/grocery_gourmet/web/js/my_custom.js

 

OR Recommended way to declare JS.

1 REPLY 1

Re: Magento 2 - How to add custom JS file into Blocks