M-Zuber / npm-watch

run npm scripts when files change
MIT License
323 stars 38 forks source link

Empty tags #52

Closed guilhermemarconi closed 3 years ago

guilhermemarconi commented 6 years ago

When I have a <script src="my-script.js"></script> the tag is converted to <script src="my-script.js"/> and the browser can't render the entire HTML file. The same with <div data-attr="my value"></div>.

There's some config or something that I can do rather than <script src="my-script.js">return;</script> or <div data-attr="my value">&nbsp;</div>?

M-Zuber commented 5 years ago

I am unclear as to what you are trying to do.

This is a CLI tool, and not designed for use in a browser. Can you please explain your use case a bit more?