jeudi 9 juillet 2015

Ember CLI removes HTML comments

I’m attempting to add conditional comments to my Ember (CLI) app. This seems straightforward—simply add the HTML comments to Ember CLI's app/index.html file—but all HTML comments (even of the non-conditional variety) appear to be stripped out at some point during the build. I’ve tried “injecting” comments with ember-cli-inline-content, as well, but those are also removed.

Before:

<link rel="" href="">
<!-- comment -->
<link rel="" href="">

After:

<link rel="" href="">

<link rel="" href="">

Is there a way to have Ember CLI retain HTML comments in the app/index.html file after the build?

Related details: we’re on Ember CLI 0.2.3, and I’ve checked that the build isn't running in “production” mode.




Aucun commentaire:

Enregistrer un commentaire