/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/module-worker/webpack.config.js
23 строки
515 B
Alexander Akait
refactor: examples (#20085)
04 ноя 2025, 18:22
Не верифицирован
04 ноя 2025, 18:22
196e19e
Код
Авторство
О чём код?
"use strict"; const path = require("path"); /** @type {import("webpack").Configuration} */ const config = { entry: "./example.js", output: { path: path.join(__dirname, "dist"), filename: "[name].js", chunkFilename: "[name].js", publicPath: "/dist/" }, optimization: { chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only) }, target: "browserslist: last 2 Chrome versions", experiments: { outputModule: true } }; module.exports = config;