/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/source-map-nested-imports/webpack.config.js
27 строк
560 B
Alexander Akait
fix(css): merge @imported CSS at build time for accurate inline source maps (#20954)
13 май 2026, 16:51
Не верифицирован
13 май 2026, 16:51
724c209
Код
Авторство
О чём код?
"use strict"; /** * @param {"text" | "css-style-sheet"} exportType the CSS parser exportType * @returns {import("../../../../").Configuration} webpack configuration */ const makeConfig = (exportType) => ({ name: exportType, target: "web", mode: "development", devtool: "source-map", module: { rules: [ { test: /\.css$/, type: "css/auto", parser: { exportType } } ] }, experiments: { css: true } }); /** @type {import("../../../../").Configuration[]} */ module.exports = [makeConfig("text"), makeConfig("css-style-sheet")];