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

tag property lost #236

Closed askie closed 5 years ago

askie commented 7 years ago
<!-- build:css css/print.css -->
    <link rel="stylesheet" href="styles/print.css" media="print">
    <!-- endbuild -->

build result:

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

the tag 'media="print"' is gone!

jonkemp commented 7 years ago

Try this:

<!-- build:css css/print.css media="print" -->
<link rel="stylesheet" href="styles/print.css" media="print">
<!-- endbuild -->
kyooriouskoala commented 5 years ago
<!-- build:css css/print.css media="print" -->
<link rel="stylesheet" href="styles/print.css" media="print">
<!-- endbuild -->

Solution works!