Syllabus/themes/piratecare/node_modules/postcss-js/sync.js

13 lines
333 B
JavaScript
Raw Normal View History

2020-03-05 04:10:52 +00:00
var postcss = require('postcss')
var processResult = require('./process-result')
var parse = require('./parser')
module.exports = function (plugins) {
var processor = postcss(plugins)
return function (input) {
var result = processor.process(input, { parser: parse, from: undefined })
return processResult(result)
}
}