Sha256: 7f2b27651b2fb5ac7f46adb6e6f928194b31af0c6b821225400d0ee762c94e0c
Contents?: true
Size: 745 Bytes
Versions: 29
Compression:
Stored size: 745 Bytes
Contents
'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
Version data entries
29 entries across 29 versions & 2 rubygems