How to use the postcss-values-parser.string function in postcss-values-parser

To help you get started, we’ve selected a few postcss-values-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Pavliko / postcss-svg / src / lib / transpile-decl.js View on Github external
return elementAsDURISVG(clone, document, opts).then(xml => {
							// update 
							urlNode.value = xml;

							// conditionally quote 
							if (opts.utf8) {
								urlNode.replaceWith(
									parser.string({
										value: urlNode.value,
										quoted: true,
										raws: Object.assign(urlNode.raws, { quote: '"' })
									})
								);
							}

							// update declaration
							decl.value = String(declAST);
						});
					}