3

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.

x29a
  • 1,761
  • 1
  • 24
  • 43

1 Answers1

2

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

x29a
  • 1,761
  • 1
  • 24
  • 43