Jordan Pittman f2d73b8c3d
Change how we handle defaults (optimized or not) (#6926)
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2022-01-07 11:39:45 -05:00

15 lines
367 B
JavaScript

import path from 'path'
import postcss from 'postcss'
import tailwind from '../../src'
export * from './strings'
export * from './defaults'
export function run(input, config, plugin = tailwind) {
let { currentTestName } = expect.getState()
return postcss(plugin(config)).process(input, {
from: `${path.resolve(__filename)}?test=${currentTestName}`,
})
}