download
raw
738 Bytes
'use strict'
let Warning = require('./warning')
class Result {
get content() {
return this.css
}
constructor(processor, root, opts) {
this.processor = processor
this.messages = []
this.root = root
this.opts = opts
this.css = ''
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')
}
}
module.exports = Result
Result.default = Result

Xet Storage Details

Size:
738 Bytes
·
Xet hash:
7bdc427950fe8661e51ea08b88ab8de943c4ca20da918b75aed4df562e589633

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.