Does app work without adding an endtag?
See original GitHub issueUnless 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:
- Created 10 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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)
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
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.