mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-28 08:02:16 +08:00
18 lines
307 B
JavaScript
18 lines
307 B
JavaScript
/**
|
|
* Stringify PostCSS node including its raw "before" string.
|
|
*
|
|
* @param {import('postcss').Node} node
|
|
*
|
|
* @returns {string}
|
|
*/
|
|
export default function rawNodeString(node) {
|
|
let result = '';
|
|
|
|
if (node.raws.before) {
|
|
result += node.raws.before;
|
|
}
|
|
|
|
result += node.toString();
|
|
|
|
return result;
|
|
}
|