mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-29 06:39:13 +08:00
15 lines
375 B
Text
15 lines
375 B
Text
'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);
|
|
};
|