How To Concatenate Conditionally Loaded Scripts in WordPress with Gulp
Introduction
I was going to do a formal announcement that The M.X. was going to use Gulp to manage the theme, but I might as well mention it as part of this tutorial. So, while working on this update, I was trying to figure out how to concatenate conditionally loaded JavaScript files together– specifically scripts that load as a result of turning “on” a feature in the Customizer. In this tutorial, I will describe how I did this task and why it may be useful if your theme design is set up a certain way.
Read More…
