2020-05-19 11:43:42 +03:00

21 lines
311 B
JavaScript

'use strict';
/**
* Stringify PostCSS node including its raw "before" string.
*
* @param {import('postcss').Node} node
*
* @returns {string}
*/
module.exports = function(node) {
let result = '';
if (node.raws.before) {
result += node.raws.before;
}
result += node.toString();
return result;
};