UNPKG

312 BJavaScriptView Raw
1'use strict';
2
3/**
4 * Stringify PostCSS node including its raw "before" string.
5 *
6 * @param {import('postcss').Node} node
7 *
8 * @returns {string}
9 */
10module.exports = function (node) {
11 let result = '';
12
13 if (node.raws.before) {
14 result += node.raws.before;
15 }
16
17 result += node.toString();
18
19 return result;
20};