/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/aggressive-merging/webpack.config.js
29 строк
640 B
Alexander Akait
refactor: examples (#20085)
04 ноя 2025, 18:22
Не верифицирован
04 ноя 2025, 18:22
196e19e
Код
Авторство
О чём код?
"use strict"; const path = require("path"); const { AggressiveMergingPlugin } = require("../..").optimize; /** @type {import("webpack").Configuration} */ const config = { // mode: "development" || "production", entry: { pageA: "./pageA", pageB: "./pageB", pageC: "./pageC" }, output: { path: path.join(__dirname, "dist"), filename: "[name].bundle.js", chunkFilename: "[id].chunk.js" }, plugins: [ new AggressiveMergingPlugin({ minSizeReduce: 1.5 }) ], optimization: { chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only) } }; module.exports = config;