mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-29 09:37:58 +08:00
18 lines
367 B
JavaScript
18 lines
367 B
JavaScript
/** @typedef {import('postcss').Declaration} Declaration */
|
|
|
|
/**
|
|
* @param {Declaration} decl
|
|
* @param {string} value
|
|
* @returns {Declaration} The declaration that was passed in.
|
|
*/
|
|
export default function setDeclarationValue(decl, value) {
|
|
const raws = decl.raws;
|
|
|
|
if (raws.value) {
|
|
raws.value.raw = value;
|
|
} else {
|
|
decl.value = value;
|
|
}
|
|
|
|
return decl;
|
|
}
|