文件操作 - result.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/postcss/lib/result.js
编辑文件内容
'use strict' let Warning = require('./warning') class Result { constructor(processor, root, opts) { this.processor = processor this.messages = [] this.root = root this.opts = opts this.css = undefined this.map = undefined } toString() { return this.css } warn(text, opts = {}) { if (!opts.plugin) { if (this.lastPlugin && this.lastPlugin.postcssPlugin) { opts.plugin = this.lastPlugin.postcssPlugin } } let warning = new Warning(text, opts) this.messages.push(warning) return warning } warnings() { return this.messages.filter(i => i.type === 'warning') } get content() { return this.css } } module.exports = Result Result.default = Result
修改文件时间
将文件时间修改为当前时间的前一年
删除文件