/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/split-chunks/target-node/webpack.config.js
49 строк
891 B
Alexander Akait
test: mini css extract plugin tests
27 мар 2026, 14:15
Не верифицирован
27 мар 2026, 14:15
807a88e
Код
Авторство
О чём код?
"use strict"; /** @type {import("../../../../").Configuration[]} */ module.exports = [ { name: "default", entry: "./index", target: "node", output: { filename: "default-[name].js", libraryTarget: "commonjs2" }, optimization: { splitChunks: { minSize: 1, chunks: "all" } } }, { name: "many-vendors", entry: "./index", target: "node", output: { filename: "many-vendors-[name].js", libraryTarget: "commonjs2" }, optimization: { splitChunks: { minSize: 1, chunks: "all", maxInitialRequests: Infinity, cacheGroups: { default: false, defaultVendors: false, vendors: { test: /node_modules/, name: (m) => { const match = /** @type {string} */ (m.nameForCondition()).match(/([b-d]+)\.js$/); if (match) return `vendors-${match[1]}`; } } } } } } ];