/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/html/src/app.js
9 строк
417 B
Alexander Akait
feat(html): add module.parser.html.template option (#21055)
29 май 2026, 16:56
Не верифицирован
29 май 2026, 16:56
4fbec23
Код
Авторство
О чём код?
// Loaded by the HTML entry via `<script src="./app.js">`. It imports an HTML // module as a string: an HTML module imported from JavaScript exports its // (URL-rewritten) HTML and, because it isn't an entry, is NOT emitted as a // standalone `.html` file. import fragment from "./fragment.html"; const container = document.createElement("div"); container.innerHTML = fragment; document.body.appendChild(container);