/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/output-html-css/test.js
8 строк
327 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("wraps a CSS entry with only a stylesheet link, no script", () => { const html = fs.readFileSync(path.resolve(__dirname, "styles.html"), "utf-8"); expect(html).toMatch(/<link rel="stylesheet" href="[^"]+\.css">/); expect(html).not.toMatch(/__html_[^"]*\.js/); });