/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/output-html-hook-custom/test.js
8 строк
336 B
Alexander Akait
feat(html): generate output.html for entrypoints with dependOn support (#21215)
18 июн 2026, 23:04
Не верифицирован
18 июн 2026, 23:04
868209f
Код
Авторство
О чём код?
const fs = require("fs"); const path = require("path"); it("lets a custom plugin tap the entry hook to wrap a non-HTML entry in HTML", () => { const html = fs.readFileSync(path.resolve(__dirname, "main.html"), "utf-8"); expect(html).toContain("<h1>From plugin</h1>"); expect(html).toMatch(/<script src="[^"]+\.js"><\/script>/); });