/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/source-loader-generate/generate-loader.js
8 строк
359 B
Alexander Akait
Experimental HTML: parser/generator options, compilation hooks, and fixes (#21441)
19 июл 2026, 23:58
Не верифицирован
19 июл 2026, 23:58
cb904da
Код
Авторство
О чём код?
"use strict"; // Overrides how a built-in `<img src>` resource is produced: instead of the // default file passthrough, the loader generates its own custom content. /** @type {import("../../../../").LoaderDefinition} */ module.exports = function () { return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><!-- generated-by-loader --></svg>'; };