/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/output-html-integrity-invalid-algorithm/webpack.config.js
16 строк
454 B
Alexander Akait
fix(html): correct output.html.integrity and extend SRI to preload hints (#21368)
09 июл 2026, 12:38
Не верифицирован
09 июл 2026, 12:38
d7c39ba
Код
Авторство
О чём код?
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", entry: { main: "./src/main.js" }, output: { filename: "[name].[contenthash].js", htmlFilename: "index.html", crossOriginLoading: "anonymous", // An unsupported algorithm must surface as a webpack error, not crash // the compilation out of `processAssets`. html: { integrity: ["not-a-real-algorithm"] } }, experiments: { html: true } };