Which worked ok but it’s being sent through the jshint and throwing lots of compiling js errors and ends the build process.
You may need to alter your JSHint config depending on the errors you’re seeing. Also, if scripts/semantic-ui.js is already minified then you may end up with nasty errors/output; best to use an unminified source file.
What’s the correct way to add a custom script that doesn’t get jshint checked and is just compressed?
Just cut it out of your gulp workflow entirely and enqueue it as you would any other script.