Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does gulp preprocess support else branching

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.

like image 478
x29a Avatar asked Feb 15 '26 04:02

x29a


1 Answers

Since gulp-preprocess uses preprocess, i looked there and found no else directive (yet). Bummer.

like image 195
x29a Avatar answered Feb 17 '26 16:02

x29a