question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does app work without adding an endtag?

See original GitHub issue

Unless injecting into a non-html file (i.e the JSON example) I don’t see any need to specify <!-- endinject --> in the html file.

So this pattern:

<!-- inject:js -->
<!-- any *.js files among your sources will go here as: <script src="FILE"></script> -->
<!-- endinject -->

Is the same as this one:

<!-- inject:js -->

But just shorter, more concise and less messy. The endtags IMO are a remnant of the usemin patterns where you actually specify all files beforehand unlike gulp-inject where files just come from a stream.

What do you think?

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pgiladcommented, Feb 26, 2014

What do you mean some “files have already been injected” ? the inject tag is just a placeholder for where and what to inject. What is the usecase for the endinject in html file?

Basically doesn’t the algorithm just: (for html)

  1. find start tag
  2. sort out what kind
  3. inject relevant files from stream

what is the use for the endinject tag? From what I can tell the inject tag can just be appended with the relevant files…

Am I mistaken? @joakimbeng

0reactions
speciouscommented, Jul 18, 2021

The way it looks to me is there’s no difference other than being able to have some content that will be removed between the tags.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the correct way to detect EXT-X-ENDLIST tag from a ...
It often works, but sometimes currentItem's duration remains indefinite even if EXT-X-ENDLIST hls end tag was appended to the playlist. To me:.
Read more >
VueCompilerError: Element is missing end tag - Stack Overflow
Your vue code is fine. Recompile your project. I have this issue occasionally. Recompiling always fixes it. Ctrl + C. npm run serve....
Read more >
(end tag) error occurs when you open a DOCX file in Word ...
Provides an automated solution to fix errors you may get when opening Word 2013, 2010, or 2007 documents containing equations.
Read more >
How to Use a Skin Tag Remover - Daily Sundial
Hempvana's EndTag remover will help you clear up skin tags using natural and effective ingredients like aloe vera and turmeric. Say goodbye to ......
Read more >
Do all HTML tags have end tag? - Quora
No. Some tags like <br>,<img> etc. don't have closing tags.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found