source: frontend/node_modules/postcss-merge-longhand/src/lib/getRules.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 375 bytes
RevLine 
[9af201e]1'use strict';
2const getLastNode = require('./getLastNode.js');
3
4/**
5 * @param {import('postcss').Declaration[]} props
6 * @param {string[]} properties
7 * @return {import('postcss').Declaration[]}
8 */
9module.exports = function getRules(props, properties) {
10 return properties
11 .map((property) => {
12 return getLastNode(props, property);
13 })
14 .filter(Boolean);
15};
Note: See TracBrowser for help on using the repository browser.