So gulp-preprocess allows to define variable dependant source code during gulp compilation, the syntax is as follows (for e.g. HTML)
<!-- @if NODE_ENV='production' -->
<script src="some/production/lib/like/analytics.js"></script>
<!-- @endif -->
But is there also a way to specify an else branch?
Simply using <!-- @else --> doesnt work.
Since gulp-preprocess uses preprocess, i looked there and found no else directive (yet). Bummer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With