ericclemmons / grunt-angular-templates

Grunt build task to concatenate & pre-load your AngularJS templates
MIT License
710 stars 107 forks source link

Self-closing tags from html are not being preserved #109

Closed dotnetwise closed 10 years ago

dotnetwise commented 10 years ago
<div>
    This is projectsss

    <projectslist />

    <div>
        <div ui-view></div>
    </div>

</div>

When it is bundled it gets into :

<div>This is projectsss<projectslist><div><div ui-view></div></div></div>

Notice the missing of / in the <projectslist> tag

ericclemmons commented 10 years ago

Are you running htmlmin? I hear that thing will wreck your HTML...

ericclemmons commented 10 years ago

(This project doesn't modify HTML on it's own. It's fairly naïve. While htmlmin will create some savings, it's not without its flaws)

dotnetwise commented 10 years ago

Yes htmlmin: { collapseWhitespace: true, collapseBooleanAttributes: true },

ericclemmons commented 10 years ago

Yea, I'd remove the htmlmin option, see if it works fine (it will), and then open an issue on that project :)

araozmd commented 9 years ago

Use this option "keepClosingSlash: true"