nav tabs on admin dashboard
This commit is contained in:
17
node_modules/webpack/lib/performance/AssetsOverSizeLimitWarning.js
generated
vendored
17
node_modules/webpack/lib/performance/AssetsOverSizeLimitWarning.js
generated
vendored
@@ -9,14 +9,21 @@ const SizeFormatHelpers = require("../SizeFormatHelpers");
|
||||
|
||||
module.exports = class AssetsOverSizeLimitWarning extends WebpackError {
|
||||
constructor(assetsOverSizeLimit, assetLimit) {
|
||||
super();
|
||||
const assetLists = assetsOverSizeLimit
|
||||
.map(
|
||||
asset =>
|
||||
`\n ${asset.name} (${SizeFormatHelpers.formatSize(asset.size)})`
|
||||
)
|
||||
.join("");
|
||||
|
||||
super(`asset size limit: The following asset(s) exceed the recommended size limit (${SizeFormatHelpers.formatSize(
|
||||
assetLimit
|
||||
)}).
|
||||
This can impact web performance.
|
||||
Assets: ${assetLists}`);
|
||||
|
||||
this.name = "AssetsOverSizeLimitWarning";
|
||||
this.assets = assetsOverSizeLimit;
|
||||
const assetLists = this.assets.map(asset => `\n ${asset.name} (${SizeFormatHelpers.formatSize(asset.size)})`).join("");
|
||||
this.message = `asset size limit: The following asset(s) exceed the recommended size limit (${SizeFormatHelpers.formatSize(assetLimit)}).
|
||||
This can impact web performance.
|
||||
Assets: ${assetLists}`;
|
||||
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user