jspm / generator

JSPM Import Map Generator
Apache License 2.0
165 stars 21 forks source link

HTML injection indentation issue #197

Closed guybedford closed 1 year ago

guybedford commented 1 year ago

For the (trimmed) input:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>JSPM example</title>
    <script type="importmap"></script>
  </head>
  <body>
  </body>
</html>

The injected import map does not have the correct indentation.

In addition, without the importmap script tag, injection is not in the head, where it probably should rather be properly detected.