UNPKG

postcss-sorting

Version:

PostCSS plugin to keep rules and at-rules content in order.

12 lines (9 loc) 200 B
module.exports = function createExpectedPropertiesOrder(input) { const order = {}; input.forEach((property, propertyIndex) => { order[property] = { propertyIndex, }; }); return order; };