I tried the same thing and i cannot see my custom script in “assets/scripts/jquery.flexslider.js” being included in head or footer. Am i missing something?
I added the following to assets/mainfest.json file :
"jquery.flexslider.js": {
"vendor": ["assets/scripts/jquery.flexslider.js"]
}
And added it in lib/assets.php as well like this:
wp_enqueue_script('sage_js', asset_path('scripts/jquery.flexslider.js'), [], null, true);
After this i tried building the project with both gulp and gulp --production. I can get the file created in dist/scripts/jquery.flexslider.js. But why is it not being included in html? Please help…