/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/extract/test.config.js
12 строк
348 B
Alexander Akait
feat(html): add `module.generator.html.extract` option (#20979)
19 май 2026, 22:41
Не верифицирован
19 май 2026, 22:41
45a1bab
Код
Авторство
О чём код?
"use strict"; const fs = require("fs"); // `output.filename` is `[name].js` so the test entry bundle lives at // `main.js`, not `bundle0.js`. Tell the harness where to find it. module.exports = { findBundle(_i, options) { const files = fs.readdirSync(options.output.path); return files.includes("main.js") ? ["./main.js"] : undefined; } };