source: trip-planner-front/node_modules/webpack/lib/optimize/MinMaxSizeWarning.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 819 bytes
Line 
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5
6"use strict";
7
8const SizeFormatHelpers = require("../SizeFormatHelpers");
9const WebpackError = require("../WebpackError");
10
11class MinMaxSizeWarning extends WebpackError {
12 constructor(keys, minSize, maxSize) {
13 let keysMessage = "Fallback cache group";
14 if (keys) {
15 keysMessage =
16 keys.length > 1
17 ? `Cache groups ${keys.sort().join(", ")}`
18 : `Cache group ${keys[0]}`;
19 }
20 super(
21 `SplitChunksPlugin\n` +
22 `${keysMessage}\n` +
23 `Configured minSize (${SizeFormatHelpers.formatSize(minSize)}) is ` +
24 `bigger than maxSize (${SizeFormatHelpers.formatSize(maxSize)}).\n` +
25 "This seem to be a invalid optimization.splitChunks configuration."
26 );
27 }
28}
29
30module.exports = MinMaxSizeWarning;
Note: See TracBrowser for help on using the repository browser.