grunt-devcode icon indicating copy to clipboard operation
grunt-devcode copied to clipboard

Add code for prod, not just dev

Open jasedwards opened this issue 11 years ago • 2 comments

I see in the readme file that I can tell something to be removed for production but can something be added for production? As in if env is dev "use this code" if env is prod "use this code".

jasedwards avatar Nov 25 '14 21:11 jasedwards

+1

ika18 avatar Apr 15 '15 03:04 ika18

Sure - sorry for such a late reply :)

For non production

<!-- devcode: !production -->
  <li class="right"><a href="#settings" data-toggle="tab">Settings</a></li>
<!-- endcode -->

and for production

<!-- devcode: production -->
  <li class="right"><a href="#settings" data-toggle="tab">Settings</a></li>
<!-- endcode -->

krzysztofantczak avatar May 26 '15 15:05 krzysztofantczak