This repository has been archived on 2020-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
Syllabus/themes/piratecare/node_modules/postcss-js/async.js

15 lines
330 B
JavaScript

var postcss = require('postcss')
var processResult = require('./process-result')
var parse = require('./parser')
module.exports = function (plugins) {
var processor = postcss(plugins)
return function (input) {
return processor.process(input, {
parser: parse,
from: undefined
}).then(processResult)
}
}