/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/optimization/minimize-html-only/webpack.config.js
36 строк
594 B
Alexander Akait
feat: configure or exclude each asset type's minifier via optimization.minimize (#21663)
10 авг 2026, 18:37
Не верифицирован
10 авг 2026, 18:37
5a8fa6c
Код
Авторство
О чём код?
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "production", output: { filename: "[name].js", pathinfo: false }, module: { generator: { html: { extract: true } }, parser: { html: { sources: false } } }, optimization: { // Only HTML stays minimized; its inline CSS still minifies, but with the // default options — a disabled `css` type carries none to forward. minimize: { javascript: false, css: false }, minimizer: ["..."] }, experiments: { css: true, html: true } };