文件操作 - keyframes.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/vite-plugin-svg-icons/node_modules/csso/lib/replace/atrule/keyframes.js
编辑文件内容
module.exports = function(node) { node.block.children.each(function(rule) { rule.prelude.children.each(function(simpleselector) { simpleselector.children.each(function(data, item) { if (data.type === 'Percentage' && data.value === '100') { item.data = { type: 'TypeSelector', loc: data.loc, name: 'to' }; } else if (data.type === 'TypeSelector' && data.name === 'from') { item.data = { type: 'Percentage', loc: data.loc, value: '0' }; } }); }); }); };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件