jonkemp / gulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.
MIT License
705 stars 93 forks source link

delete full line #177

Closed alexeybondarenko closed 8 years ago

alexeybondarenko commented 8 years ago

Source:

<!DOCTYPE html>
<html>
  <bod>
    <div>
    </div><!-- build:js js/app.min.js -->
    <script src="js/config.js"></script>
    <script src="js/app.js"></script><!-- endbuild -->
  </body>
</html>

Result:

<!DOCTYPE html>
<html>
  <bod>
    <div>
    <script src="js/app.min.js"></script>
  </body>
</html>

app.min.js contains only content from file config.js, because script tag with app.js is deleted with endbuild comment block.

jonkemp commented 8 years ago

Put the endbuild comment on a new line.