first
This commit is contained in:
15
node_modules/postcss-merge-longhand/src/lib/getRules.js
generated
vendored
Normal file
15
node_modules/postcss-merge-longhand/src/lib/getRules.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
const getLastNode = require('./getLastNode.js');
|
||||
|
||||
/**
|
||||
* @param {import('postcss').Declaration[]} props
|
||||
* @param {string[]} properties
|
||||
* @return {import('postcss').Declaration[]}
|
||||
*/
|
||||
module.exports = function getRules(props, properties) {
|
||||
return properties
|
||||
.map((property) => {
|
||||
return getLastNode(props, property);
|
||||
})
|
||||
.filter(Boolean);
|
||||
};
|
Reference in New Issue
Block a user