文件操作 - Value.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/csso/lib/replace/Value.js
编辑文件内容
import { property as resolveName } from 'css-tree'; import font from './property/font.js'; import fontWeight from './property/font-weight.js'; import background from './property/background.js'; import border from './property/border.js'; import outline from './property/border.js'; const handlers = { 'font': font, 'font-weight': fontWeight, 'background': background, 'border': border, 'outline': outline }; export default function compressValue(node) { if (!this.declaration) { return; } const property = resolveName(this.declaration.property); if (handlers.hasOwnProperty(property.basename)) { handlers[property.basename](node); } };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件