grunt-processhtml icon indicating copy to clipboard operation
grunt-processhtml copied to clipboard

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

Open leolux opened this issue 7 years ago • 2 comments

Version 0.4.1

leolux avatar Mar 20 '18 18:03 leolux

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

dciccale avatar Mar 31 '18 10:03 dciccale

<!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.

leolux avatar Mar 31 '18 17:03 leolux