jonkemp / gulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.
MIT License
705 stars 93 forks source link

about css replace #122

Closed csxuyang closed 8 years ago

csxuyang commented 8 years ago

Hi : I use the gulp-useref to replace the css like your example

    <!-- build:css css/combined.css -->
    <link href="css/one.css" rel="stylesheet">
    <link href="css/two.css" rel="stylesheet">
    <!-- endbuild -->

the result not like yours,didn't have the /

    <link rel="stylesheet" href="css/combined.css">

yours:

    <link rel="stylesheet" href="css/combined.css"/>

I'm use the thymeleaf Template ,if the link not contain / >,the project would run error. How can I solve the problem? Thank you!

csxuyang commented 8 years ago

I modify the src ,thanks for your code ~

jonkemp commented 8 years ago

This is not supported. Not having the closing forward slash is valid HTML5.