html
HTML language support for jsrepo.
The html language plugin supports dependency resolution for HTML files as well as installing remote dependencies with ecosystem: "js".
Supported syntax
The HTML plugin will detect dependencies from the following syntax:
scripttags withsrcattributesscripttags with inline codelinktags withhrefattributes
For example the following code:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="./app.css">
</head>
<!-- Doesn't resolve remote deps -->
<script src="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19"></script>
<script>
import { print } from "@/utils/stdout";
print("Hello, world!");
</script>
</html>Will result in the following dependencies:
./app.css- Fromlinktag@/utils/stdout- Fromscripttag with inline code
Supported File Extensions
The HTML language plugin supports the following file extensions:
| Extension |
|---|
.html |