/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/css-order2/index.js
14 строк
483 B
Natsu Xiao
fix: keep consistent css order (#19686)
14 июл 2025, 13:56
Не верифицирован
14 июл 2025, 13:56
0a98446
Код
Авторство
О чём код?
const { component } = require("./component"); component() // https://github.com/webpack/webpack/issues/18961 // https://github.com/jantimon/reproduction-webpack-css-order it("keep consistent css order", function() { const fs = __non_webpack_require__("fs"); let source = fs.readFileSync(__dirname + "/main.css", "utf-8"); expect(removeComments(source)).toMatchSnapshot() }); function removeComments(source) { return source.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\n/g, ""); }