mirror of
https://github.com/primer/css.git
synced 2024-11-22 19:01:02 +03:00
13 lines
292 B
JavaScript
13 lines
292 B
JavaScript
import postcss from 'postcss'
|
|
import postCssConfig from '../postcss.config.cjs'
|
|
|
|
export default async function compiler(css, options) {
|
|
const { plugins, ...config } = postCssConfig
|
|
|
|
const result = await postcss(plugins).process(css, {
|
|
...config,
|
|
...options
|
|
})
|
|
return result
|
|
}
|