/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/split-chunks/hot-multi/webpack.config.js
29 строк
525 B
Alexander Akait
test: mini css extract plugin tests
27 мар 2026, 14:15
Не верифицирован
27 мар 2026, 14:15
807a88e
Код
Авторство
О чём код?
"use strict"; const HotModuleReplacementPlugin = require("../../../../").HotModuleReplacementPlugin; /** @type {import("../../../../").Configuration} */ module.exports = { entry: { first: ["./shared", "./first"], second: ["./shared", "./second"] }, target: "web", output: { filename: "[name].js" }, optimization: { splitChunks: { cacheGroups: { vendor: { chunks: "all", name: "vendor", minChunks: 2, enforce: true } } } }, plugins: [new HotModuleReplacementPlugin()] };