/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/optimization/minimize-javascript-only/webpack.config.js
36 строк
584 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: { // With every non-JS type excluded the built-in minimizer applies the // same plain JS setup `minimize: true` uses without the experiments. minimize: { css: false, html: false }, minimizer: ["..."] }, experiments: { css: true, html: true } };