/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/split-chunks/hot/webpack.config.js
28 строк
476 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: { main: "./index" }, target: "web", output: { filename: "[name].js" }, optimization: { splitChunks: { cacheGroups: { vendor: { chunks: "all", name: "vendor", test: /vendor/, enforce: true } } } }, plugins: [new HotModuleReplacementPlugin()] };