/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/parser-base-in-template/webpack.config.js
15 строк
470 B
Alexander Akait
Experimental HTML: parser/generator options, compilation hooks, and fixes (#21441)
19 июл 2026, 23:58
Не верифицирован
19 июл 2026, 23:58
cb904da
Код
Авторство
О чём код?
"use strict"; // Regression test: a `<base href>` inside an inert `<template>` must NOT set the // document base. If it did, `<img src="./icon.png">` would resolve against // `./missing-dir/` (a module that does not exist → build error), and a real // `<base>` later in the document would also be suppressed. /** @type {import("../../../../").Configuration} */ module.exports = { output: { assetModuleFilename: "[name][ext]" }, experiments: { html: true } };