Skip to content

Commit 559d32d

Browse files
authored
Silence webpack performance warnings/hints (#17490)
Turns off webpack warnings like: ``` WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. ```
1 parent b623c59 commit 559d32d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/dev/buildTools/src/webpackTools.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ export const commonDevWebpackConfiguration = (
240240
}
241241
: undefined,
242242
plugins,
243+
performance: {
244+
hints: false,
245+
},
243246
};
244247
};
245248

@@ -368,6 +371,9 @@ export const commonUMDWebpackConfiguration = (options: {
368371
mode: options.mode || "development",
369372
}),
370373
},
374+
performance: {
375+
hints: false,
376+
},
371377
...options.extendedWebpackConfig,
372378
} as Configuration;
373379
};

0 commit comments

Comments
 (0)