How to use the stringify function from postcss

Find comprehensive JavaScript postcss.stringify code examples handpicked from public code repositorys.

300
301
302
303
304
305
306
307
308
309
310
311
 * @param {Boolean} [options.compress]  Compress CSS output (removes comments, whitespace, etc)
 */


function serializeStylesheet(ast, options) {
  let cssStr = '';
  postcss.stringify(ast, (result, node, type) => {
    var _node$raws;


    if (!options.compress) {
      cssStr += result;
fork icon0
star icon0
watch icon1

+ 2 other calls in file