文件操作 - border.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/csso/lib/replace/property/border.js
编辑文件内容
export default function compressBorder(node) { node.children.forEach((node, item, list) => { if (node.type === 'Identifier' && node.name.toLowerCase() === 'none') { if (list.head === list.tail) { // replace `none` for zero when `none` is a single term item.data = { type: 'Number', loc: node.loc, value: '0' }; } else { list.remove(item); } } }); };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件