/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/statsCases/split-chunks-automatic-name/webpack.config.js
45 строк
751 B
Alexander Akait
chore: resolve "use strict" TODO (#19705)
16 июл 2025, 17:29
Не верифицирован
16 июл 2025, 17:29
d8690f3
Код
Авторство
О чём код?
"use strict"; const stats = { hash: false, timings: false, builtAt: false, assets: false, chunks: true, chunkRelations: true, chunkOrigins: true, entrypoints: true, modules: false }; /** @type {import("../../../").Configuration} */ module.exports = { name: "production", mode: "production", entry: { main: "./" }, optimization: { chunkIds: "named", splitChunks: { chunks: "all", cacheGroups: { default: false, defaultVendors: false, a: { idHint: "common", reuseExistingChunk: true, minChunks: 2, enforce: true // minChunks should have higher priority }, b: { idHint: "common", test: /[\\/]node_modules[\\/]/, minSize: 1, priority: 10 } } } }, stats };