jonkemp / useref

Parse build blocks in HTML files to replace references
MIT License
51 stars 13 forks source link

Any tag before useref conditional tags losing its closing tag #14

Closed parnasmi closed 7 years ago

parnasmi commented 7 years ago

I am using gulp-useref. Unfortunately, when I use useref while ''build' task, it is some deleting the closing tag of the last tag before the Useref comment tags. For example: This

  <footer class="page-foooter">
      <p>Some testing text23</p>
    </footer><!-- build:js js/vendor.min.js -->
<!-- bower:js -->
<script src="/js/vendor/jquery/dist/jquery.js"></script>
<script src="/js/vendor/magnific-popup/dist/jquery.magnific-popup.js"></script>
<script src="/js/vendor/qtip2/jquery.qtip.js"></script>
<script src="/js/vendor/picturefill/dist/picturefill.js"></script>
<!-- endbower -->
<!-- endbuild -->

becomes to

<footer class="page-foooter">
      <p>Some testing text23</p>
    <script src="js/vendor.min.js"></script>

How to solve the problem? Thank you.

jonkemp commented 7 years ago

The start of your comment should be on a new line.

parnasmi commented 7 years ago

Thank you. You are right!