/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/source-loader-generate/webpack.config.js
24 строки
518 B
Alexander Akait
Experimental HTML: parser/generator options, compilation hooks, and fixes (#21441)
19 июл 2026, 23:58
Не верифицирован
19 июл 2026, 23:58
cb904da
Код
Авторство
О чём код?
"use strict"; const path = require("path"); // A custom loader is attached to the resource behind the built-in `<img src>` // attribute, so developers can override its default logic and generate any // custom content for that reference. /** @type {import("../../../../").Configuration} */ module.exports = { output: { assetModuleFilename: "[name][ext]" }, module: { rules: [ { test: /logo\.svg$/, use: [path.resolve(__dirname, "generate-loader.js")] } ] }, experiments: { html: true } };