/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/source-map-hidden-payload/webpack.config.js
25 строк
633 B
Alexander Akait
fix(css): name inlined CSS source map sources and honor hidden devtools (#21558)
30 июл 2026, 16:44
Не верифицирован
30 июл 2026, 16:44
029fd0f
Код
Авторство
О чём код?
"use strict"; /** * @param {string} name config name * @param {import("../../../../").Configuration["devtool"]} devtool devtool under test * @returns {import("../../../../").Configuration} webpack configuration */ const makeConfig = (name, devtool) => ({ name, target: "web", mode: "development", devtool, experiments: { css: true }, module: { rules: [ { test: /\.css$/, type: "css/auto", parser: { exportType: "text" } } ] } }); module.exports = [ makeConfig("hidden", "hidden-source-map"), makeConfig("hidden-per-type", [{ type: "all", use: "hidden-source-map" }]), makeConfig("source-map", "source-map") ];