/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/plugins/terser-plugin/webpack.config.js
45 строк
834 B
Alexander Akait
refactor: use minimizer-webpack-plugin as default minimizer (#21053)
29 май 2026, 15:16
Не верифицирован
29 май 2026, 15:16
e91f5a1
Код
Авторство
О чём код?
"use strict"; const TerserPlugin = require("minimizer-webpack-plugin"); /** @type {import("../../../../").Configuration} */ module.exports = { node: { __dirname: false, __filename: false }, entry: { ie8: ["./ie8.js"], bundle0: ["./index.js"], vendors: ["./vendors.js"], extract: ["./extract.js"], compress: ["./compress.js"] }, output: { filename: "[name].js" }, optimization: { minimize: true, minimizer: [ new TerserPlugin({ parallel: false, extractComments: false, exclude: ["vendors.js", "compress.js", "extract.js"] }), new TerserPlugin({ parallel: false, include: ["extract.js"] }), new TerserPlugin({ parallel: false, terserOptions: { compress: { passes: 2 } }, extractComments: false, include: ["compress.js"] }) ] } };