/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/lazy-compilation/webpack.config.js
24 строки
458 B
Alexander Akait
refactor: examples (#20085)
04 ноя 2025, 18:22
Не верифицирован
04 ноя 2025, 18:22
196e19e
Код
Авторство
О чём код?
"use strict"; const { HotModuleReplacementPlugin } = require("../../"); /** @type {import("webpack").Configuration & { devServer: Record<string, EXPECTED_ANY> }} */ const config = { mode: "development", cache: { type: "filesystem", idleTimeout: 5000 }, experiments: { lazyCompilation: true }, devServer: { hot: true, devMiddleware: { publicPath: "/dist/" } }, plugins: [new HotModuleReplacementPlugin()] }; module.exports = config;