mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 05:27:15 -04:00
15 lines
279 B
JavaScript
15 lines
279 B
JavaScript
|
/* @flow */
|
||
|
"use strict"
|
||
|
|
||
|
/**
|
||
|
* Stringify PostCSS node including its raw "before" string.
|
||
|
*/
|
||
|
module.exports = function (node/*: Object*/)/*: string*/ {
|
||
|
let result = ""
|
||
|
if (node.raws.before) {
|
||
|
result += node.raws.before
|
||
|
}
|
||
|
result += node.toString()
|
||
|
return result
|
||
|
}
|