/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/postcss-loader/dist/Warning.js
36 строк
656 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
"use strict"; /** * **PostCSS Plugin Warning** * * Loader wrapper for postcss plugin warnings (`root.messages`) * * @class Warning * @extends Error * * @param {Object} warning PostCSS Warning */ class Warning extends Error { constructor(warning) { super(warning); const { text, line, column, plugin } = warning; this.name = "Warning"; this.message = `${this.name}\n\n`; if (typeof line !== "undefined") { this.message += `(${line}:${column}) `; } this.message += plugin ? `${plugin}: ` : ""; this.message += `${text}`; this.stack = false; } } module.exports = Warning;