/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/statsCases/aggressive-splitting-entry/webpack.config.js
35 строк
900 B
Alexander Akait
style: set `arrowParens` to `true` (#19706)
16 июл 2025, 19:13
Не верифицирован
16 июл 2025, 19:13
703d9ac
Код
Авторство
О чём код?
"use strict"; const path = require("path"); const webpack = require("../../../"); /** @type {import("../../../").Configuration[]} */ module.exports = ["fitting", "content-change"].map((type) => ({ name: type, mode: "production", cache: true, // AggressiveSplittingPlugin rebuilds multiple times, we need to cache the assets entry: "./index", output: { filename: `${type}-[chunkhash].js`, chunkFilename: `${type}-[chunkhash].js` }, plugins: [ new webpack.optimize.AggressiveSplittingPlugin({ chunkOverhead: 0, entryChunkMultiplicator: 1, minSize: 1500, maxSize: 2500 }) ], recordsInputPath: path.resolve(__dirname, `./input-records-${type}.json`), // recordsOutputPath: __dirname + `/records-${type}.json`, stats: { chunks: true, chunkModules: true, dependentModules: true, chunkOrigins: true, entrypoints: true, modules: false, publicPath: true } }));