Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/pmb/node_modules/postcss-page-break/ drwxr-xr-x | |
| Viewing file: Select action/file-type: module.exports = function(options) {
return {
postcssPlugin: 'postcss-page-break',
Declaration(decl) {
if (decl.prop.startsWith('break-') && /^break-(inside|before|after)/.test(decl.prop)) {
// do not process column|region related properties
if (decl.value.search(/column|region/) >= 0) {
return;
}
let newValue;
switch (decl.value) {
case 'page':
newValue = 'always';
break;
case 'avoid-page':
newValue = 'avoid';
break;
default:
newValue = decl.value;
}
const newProperty = 'page-' + decl.prop;
if (decl.parent.every((sibling) => sibling.prop !== newProperty)) {
decl.cloneBefore({
prop: newProperty,
value: newValue,
});
}
}
},
};
};
module.exports.postcss = true;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.1153 ]-- |