getDeclarationValue.js 228 B

1234567891011
  1. 'use strict';
  2. /**
  3. * @param {import('postcss').Declaration} decl
  4. * @returns {string}
  5. */
  6. module.exports = function getDeclarationValue(decl) {
  7. const raws = decl.raws;
  8. return (raws.value && raws.value.raw) || decl.value;
  9. };