thingsboard/ui/node_modules/postcss-sorting/lib/processLastComments.js
2020-05-19 11:43:42 +03:00

11 lines
272 B
JavaScript

module.exports = function processLastComments(node, index, processedNodes) {
if (node.type === 'comment' && !node.hasOwnProperty('position')) {
node.position = Infinity;
node.initialIndex = index;
return processedNodes.concat(node);
}
return processedNodes;
};