/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/initial-chunk-preload-disabled/test.js
11 строк
442 B
Alexander Akait
feat(html): add output.html.resourceHints and output.environment.modulePreload (#21408)
14 июл 2026, 01:31
Не верифицирован
14 июл 2026, 01:31
f477930
Код
Авторство
О чём код?
const fs = require("fs"); const path = require("path"); const page = fs.readFileSync(path.resolve(__dirname, "page.html"), "utf-8"); it("should not emit any preload/modulepreload tags by default", () => { expect(page).not.toContain("rel=\"preload\""); expect(page).not.toContain("rel=\"modulepreload\""); // The runtime sibling is still loaded via a plain <script> tag. expect(page).toContain('<script src="runtime.js"></script>'); });