Argento custom js
Make sure to create and change your theme to
Local/argentobreeze-custombefore start.
ArgentoBreeze themes are based on Breeze frontend. This means that we can repeat the same steps to add custom JS.
Example
-
Navigate to
Local/argentobreeze-customdirectorycd <MAGENTO_ROOT>/app/design/frontend/Local/argentobreeze-custom -
Create
web/js/breeze/folder and navigate inside:mkdir -p web/js/breeze && cd web/js/breeze -
Create
custom.jsfile with the following content:(function () { 'use strict'; $(document).on('breeze:load', function () { console.log('Hello'); }); }); -
Save the file and run following commands to deploy js file
cd magento/root/folder php bin/magento setup:static-content:deploy