文件操作 - debug-info.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/less/lib/less/tree/debug-info.js
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function asComment(ctx) { return "/* line ".concat(ctx.debugInfo.lineNumber, ", ").concat(ctx.debugInfo.fileName, " */\n"); } function asMediaQuery(ctx) { var filenameWithProtocol = ctx.debugInfo.fileName; if (!/^[a-z]+:\/\//i.test(filenameWithProtocol)) { filenameWithProtocol = "file://".concat(filenameWithProtocol); } return "@media -sass-debug-info{filename{font-family:".concat(filenameWithProtocol.replace(/([.:/\\])/g, function (a) { if (a == '\\') { a = '/'; } return "\\".concat(a); }), "}line{font-family:\\00003").concat(ctx.debugInfo.lineNumber, "}}\n"); } function debugInfo(context, ctx, lineSeparator) { var result = ''; if (context.dumpLineNumbers && !context.compress) { switch (context.dumpLineNumbers) { case 'comments': result = asComment(ctx); break; case 'mediaquery': result = asMediaQuery(ctx); break; case 'all': result = asComment(ctx) + (lineSeparator || '') + asMediaQuery(ctx); break; } } return result; } exports.default = debugInfo; //# sourceMappingURL=debug-info.js.map
修改文件时间
将文件时间修改为当前时间的前一年
删除文件