Reputation: 1781
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
Reputation: 1781
Since gulp-preprocess
uses preprocess, i looked there and found no else
directive (yet). Bummer.
Upvotes: 2