first commit
This commit is contained in:
36
app_vue/node_modules/postcss-loader/dist/Warning.js
generated
vendored
Normal file
36
app_vue/node_modules/postcss-loader/dist/Warning.js
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
"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;
|
Reference in New Issue
Block a user