I have some JS that I need to insert into the <head> of base.php. Mainly to avoid FOUC stuff. It’s Vanilla JS so I’m not worried about deps.
I can think of a few ways to get it in there (brute force, php include…) but what I’d really like to do is have the ability to work on a normal version of it and have a minified version inserted into the head. I don’t want to enqueue it—I want it printed directly into the HTML.
Is there way to do this with the current gulp setup? Current project is based on Sage 8.2.1.