I'm working with a Wordpress setup, and have a template which loads my Gulp-generated JavaScript file (using browserify/babelify to compile).
I am uglifying the browserify/babelified result, and I also use browser-sync.
When I use the website through the Browser-Sync webserver, I would like to load the bundle.js (uncompressed) version of the javascript in my template, when I use the website outside the BrowserSync version / in production, I'd like the bundle.min.js (minified) script to be loaded instead.