/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/optimization/minimize-css-only/webpack.config.js
36 строк
548 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: { // `false` excludes a type from the built-in minimizer: only the CSS // asset is minimized here. minimize: { javascript: false, html: false }, minimizer: ["..."] }, experiments: { css: true, html: true } };