dciccale / grunt-processhtml

Process html files at build time to modify them depending on the release environment
MIT License
407 stars 30 forks source link

Does not ignore comments within <!-- phtml:css inline --> #116

Open leolux opened 6 years ago

leolux commented 6 years ago

Version 0.4.1

dciccale commented 6 years ago

Hi, could you provide an example of the html file that is failing to ignore the comment?

leolux commented 6 years ago
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Test</title>

  <!-- phtml:css inline  -->
  <link rel="stylesheet" href="base.css"/>
  <!--<link rel="stylesheet" href="style.css">-->
  <!-- /phtml  -->
</head>
<body>
Hello Body
</body>
</html>

In this example the contents of both base.css and style.css are included the result ouput.