x29a
x29a

Reputation: 1781

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.

Upvotes: 3

Views: 108

Answers (1)

x29a
x29a

Reputation: 1781

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

Upvotes: 2

Related Questions