/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/parser-sources-html-entry/webpack.config.js
21 строка
489 B
Alexander Akait
feat(html): add `html` source type for linking HTML pages (#21346)
06 июл 2026, 22:32
Не верифицирован
06 июл 2026, 22:32
6ed4473
Код
Авторство
О чём код?
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { assetModuleFilename: "[name][ext]" }, module: { parser: { html: { // Treat `<a href>` like a link to another HTML page: the // referenced file is bundled as its own emitted page and the // href is rewritten to its output filename. `"..."` keeps defaults. sources: ["...", { tag: "a", attribute: "href", type: "html" }] } } }, experiments: { html: true } };