/
githubmirror
/
tailwindcss
Обзор
Документация
Войти
/
githubmirror
/
tailwindcss
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.4.19
tests/util/run.js
33 строки
752 B
Robin Malfait
Cleanup oxide — Part #2 (#13312)
22 мар 2024, 19:12
Не верифицирован
22 мар 2024, 19:12
44b3b42
Код
Авторство
О чём код?
import path from 'path' import postcss from 'postcss' import tailwind from '../../src' export * from './strings' export * from './defaults' export let map = JSON.stringify({ version: 3, file: null, sources: [], names: [], mappings: '', }) export function run(input, config, plugin = tailwind) { let { currentTestName } = expect.getState() return postcss(plugin(config)).process(input, { from: `${path.resolve(__filename)}?test=${currentTestName}`, }) } export function runWithSourceMaps(input, config, plugin = tailwind) { let { currentTestName } = expect.getState() return postcss(plugin(config)).process(input, { from: `${path.resolve(__filename)}?test=${currentTestName}`, map: { prev: map, }, }) }